Archive: EXEFILE variable


EXEFILE variable
According to the installed NSIS (v2.4.6) help file the

$EXEFILE - The base name of the installer executable

Now - when checking this in one script $EXEPATH returns the full name (i.e full path and file name) of the setup file, while in other script it really returns only the setup file name.

1. How can it be?
2. What i actually need is the full name (including path) of the executable. whats the best way to have it?

tx

jammusi


$EXEPATH returns the full path the installer uses to read its own contents. $EXEFILE is just the filename and $EXEDIR is just its directory. If either one doesn't work as expected, there might be a problem.


Of course
I guess I was the stupid.
I'm not sure but probably I mixed EXEPATH with EXEFILE without noticing

Now it works fine

Tx

:up:


Now
when running the Uninstaller NSIS is actually running from a temp file thus all the following vaiables
EXEPATH
EXEDIR
EXEFILE
CMDLINE
holds the temp file / folder details although the actual file that has been executed is the uninstaller.

How can i have the "real uninstaller" details?


$INSTDIR contains the original $EXEDIR.


tx