NSIS get path of current installer file that is running
Asked Answered
G

2

28

Is there an NSIS var to get the path of the currently running installer?

Greige answered 26/9, 2008 at 16:47 Comment(0)
G
32

Found it: $EXEPATH

Greige answered 26/9, 2008 at 16:51 Comment(0)
S
16

There are few useful variables:

  • $EXEPATH - holds installer filename.
  • $EXEDIR - holds the complete path to the installer.

So according to the topic

NSIS get path of current installer file that is running

the most appropriate is $EXEDIR.

Sheliasheline answered 10/5, 2017 at 9:12 Comment(1)
$EXEPATH is the complete path to the installer including the filename. $EXEDIR is only the directory where the the installer file resides. $EXEFILE is the base filename of the installer name, e.g. "myinstaller.exe"Eggplant

© 2022 - 2024 — McMap. All rights reserved.