windows-installeruninstallationwiselaunch-condition

What do I need to check to ensure that an Uninstall is being run?


I need to set up a launch condition in my installer to prevent the user from running the MSI file directly unless they are running an uninstall. (All other types of install should be run from the bootstrap app so that it can make sure that all of the preconditions are met.)

What conditions to I need to check for this? I tried REMOVE="ALL" OR BOOTSTRAP (BOOTSTRAP is a property that my bootstrap app defines on the command line when it launches the MSI), but that also triggers on a Repair install, which I don't want.


Solution

  • As far as I can tell, so far, there doesn't seem to be a way to prevent Repair installs from being run when an MSI is launched directly, so I had to add OR REINSTALL="ALL" to my launch condition. If someone knows of a way to allow Repairs to be done only via the bootstrapper, an explanation would be much appreciated.