Skip to content
⌘ NSIS Forum Archive

ExecWait not waiting!

3 posts

Tonst#edited

ExecWait not waiting!

Hi

When running ExecWait agasint the uninstaller why is _?=$INSTDIR required to make it wait, and is $INSTDIR significant? i.e. if they installed to c:\abc previously and i am now installing to c:\xyz i'm passign the uninstaller xyz but wanting it to uninstall abc? 🤪
Pidgeot#
It is required because the uninstaller copies itself to $TEMP, then launches that copy with that parameter and quits itself. This is done to allow the uninstaller to delete itself from the install directory.
Tonst#
Ok, so taking the path from the registry for the installed version and passing that is going to be better than passing to it the default install path. Thanks.