PDA

View Full Version : multiple uninstall help please


max
11-20-2003, 12:20 PM
I would like to have my uninstaller be able to do two different things depending on who is calling it. I know I can pop up a dialog and ask the user what to do if he/she is running the uninstaller (via add/remove programs for instance), but I would also like to have another program be able to call the uninstaller and pass it the option, so that the uninstaller doesnt have to ask the user any questions. I tried accessing
%SetupCmdLineArgs% from the uninstaller, but it does not seem to be getting anything in that variable.

Is there any way to do this?

Darryl
11-20-2003, 02:45 PM
No, you currently cannot pass information to the uninstall through a command line argument. The only method I could think of for that situation is reading that information in during the uninstall, for example, from an INI file or the Registry etc. Is it possible that the calling program could write out information before it calls the uninstall routine? That may be a possibility.

Hope that helps.

max
11-20-2003, 04:13 PM
Ok thanks,

command line was the best option, but I can do it via registry or ini file.