Archive: Use args to uninstaller?


Use args to uninstaller?
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


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


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).