Question How do I make a custom action execute only during uninstall?
There is a predefined Windows Installer property called Installed, which is case sensitive. This property determines if the currently running MSI has been installed. If the MSI has been installed, this property would return true.
To get the custom action to run only during the uninstall this property would need to be true. To do this, place the Installed Property in the Condition field of the custom action, after the CostFinalize action within the MSI Script. (See the following sample code)
If Installed Display message (or any other custom action) End
Rate this Article
This is machine translated content
Login to Subscribe
Please login to set up your subscription.
Didn't find the article you were looking for? Try these resources.