jammusi
8th February 2010 08:39 UTC
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
kichik
8th February 2010 09:32 UTC
$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.
jammusi
8th February 2010 13:48 UTC
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:
jammusi
8th February 2010 15:55 UTC
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?
kichik
8th February 2010 16:56 UTC
$INSTDIR contains the original $EXEDIR.
jammusi
8th February 2010 17:09 UTC
tx