Archive: GetExeName - Could it work for Un-installer?


GetExeName - Could it work for Un-installer?
Hello Everyone,

I have a query regarding the GetExeName command.

As stated in the NSIS help files (Section E.1.9), the GetExeName returns the Name of the Installer. I am currently using it within Function .onInit and it works perfect by returning the Installer's File Name and path.

However, when the same command is executed in Function un.onInit as un.GetExeName, I would get the temporary path where the Un-installer is located instead of the actual location and name of the Un-installer.

Is there a way that GetExeName could return the name and actual location of the Un-installer?

Are there any alternatives?

Thanks for any advice on this issue.


Use the $EXEFILE constant.

Stu