In our installer, we check for a previous install, and run the uninstaller if found.
Is it possible to pass an argument to the uninstaller when executing it from the installation program?
If not how do people handle this scenario? In the installation program, the previous version is detected. Depending on how the user wants to do the install, the uninstall should be done in one of two different ways.
--
Mark Miesfeld
Use args to uninstaller?
4 posts
ExecWait '"$INSTDIR\uninstaller.exe" /foo /bar /S _?=$INSTDIR' Use Anders' line to call the uninstaller with arguments.
And inside the uninstaller script, use $CMDLINE variable or GetParameters & GetOptions functions from "FileFunc.nsh" header to access those arguments
And inside the uninstaller script, use $CMDLINE variable or GetParameters & GetOptions functions from "FileFunc.nsh" header to access those arguments
Thanks to both of you for the replies.
It was the second piece I also needed. I didn't know how to access the passed arg(s).
It was the second piece I also needed. I didn't know how to access the passed arg(s).