How do I make a custom action only occur during uninstall?
| Article:HOWTO4777 | | | Created: 2005-09-26 | | | Updated: 2009-06-16 | | | Article URL http://www.symantec.com/docs/HOWTO4777 |
Question
How do I make a custom action execute only during uninstall?
Answer
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
Legacy ID
2615
Article URL http://www.symantec.com/docs/HOWTO4777
Terms of use for this information are found in Legal Notices









Thank you.