PDA

View Full Version : setup.exe with /x option



LJHarris
10-24-2003, 02:33 PM
I am using an InstallScript MSI project. I am running my project using setup.exe with the /s for silent mode. I also add the /x (Uninstall mode) to the command line but it does not seem to have any effect. If an install is run (and the product is not on the system), the OnFirstUIBefore/OnFirstUIBefore routines get called from my script. If an install is run (and the product is on the system), the OnMaintUIBefore/OnMaintUIBefore routines get called from my script. This behavior is the same whether or not /x is set on the command line.

If /x is on the command line and the product is not installed, I expected to get some sort of error (instead the product is getting installed). Is this a bug? Is there some way I can detect if /x is set as a parameter for setup.exe so I can check for this error situation in the script?