Archive: Uninstaller name


Uninstaller name
How can I get the uninstaller name on un.onInit??

Regards,
Michael


you mean the name/path of the exe? if so, use $EXEPATH, $EXEFILE or $exedir


YES but I am compiling against NSIS 2.24 (for various reasons). It does not have neither $EXEPATH nor $EXEFILE

And I did not mean INSTALLER but UNINSTALLER.


well, it works in the uninstaller aswell

if you want to use the system plugin, you can do
System::Call 'kernel32::GetModuleFileNameA(i 0, t .R0, i 1024)i'
MessageBox mb_ok $R0


This is actually what I tried before posting to this forum BUT:
Instead: C:\Program Files\SuperMemo\uninst\sm06unin.exe
I got: C:\DOCUME~1\MICHAE~1\LOCALS~1\Temp\~nsu.tmp\Bu_.exe

Any other ideas??


$instdir would contain "C:\Program Files\SuperMemo\uninst" in this case