Summary
This article discusses ways to launch a custom action during the removal of a package.Synopsis
This article discusses ways to launch a custom action during the removal of a package.
Discussion
There are two ways to author the installation database such that an action is only called when the package is uninstalled:
- In the Sequences view, if the action is sequenced after the InstallValidate action in the InstallExecuteSequence table, you can specify a condition of REMOVE="ALL" for the action in the Condition column. Note that the property is not guaranteed to be set to ALL during an uninstall before the installer executes the InstallValidate action.
Note: The quotation marks around the value ALL are required in this case.
- In the Sequences view, if the action is sequenced after the CostFinalize action and any actions that could change the feature state, such as the MigrateFeatureStates action, the action can be conditioned on the state of a particular feature or component. Use this option to call an action during the removal of a particular feature or component, which may occur outside of the complete removal of the application.
Additional Information
For more information on custom actions, refer to the following Knowledge Base articles:
Q106146 HOWTO: Executing a Custom Action Exclusively During a Patch Install
Q106229, " HOWTO: Accessing a Property with a Deferred Execution Custom Action."
Related KB Articles
Q106146Q106229
Q106229
Related Articles
Launch a Custom Action Only When Uninstall is Selected From Add/Remove Programs 10Number of Views Launch an MSI Package Through a Custom Action in Express 3Number of Views Using a Custom Code Action/Panel in an Installer with InstallAnywhere 18Number of Views HOW TO: Launch a bat file from INSTALLDIR/SUPPORTDIR using Custom Action 24Number of Views Can I Launch a Custom Action from SUPPORTDIR in Express? 5Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago