miesfeld
5th September 2010 02:19 UTC
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
Anders
5th September 2010 02:47 UTC
ExecWait
'"$INSTDIR\uninstaller.exe"/foo/bar/S_?=$INSTDIR'
Wizou
5th September 2010 19:19 UTC
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
miesfeld
6th September 2010 19:23 UTC
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).