Customizing the Uninstall Sequence
InstallAnywhere 2020
InstallAnywhere automatically creates an uninstaller for the project. The uninstaller, much like the installer, is a collection of panels, consoles, and actions. The standard uninstaller uninstalls the application by executing each action’s uninstallation procedure.
In some scenarios, you may want additional flexibility and more control over how the uninstallation is performed. Therefore, you may want to use the Uninstall view on the Sequence page in the Advanced Designer to customize the uninstaller by adding, removing, or changing some of the uninstall actions. For example, you may want to disable the uninstallation of an entire set of resources, rename files, copy and move files, display additional panels, or execute some custom code at uninstall time.
Customizing the Uninstall sequence enables you to address scenarios such as the following:
|
•
|
Prevent uninstallation of some resources—You can choose to prevent the uninstallation of specific resources. For example, you could choose to keep some registry entries unchanged without uninstalling them for future reference. |
|
•
|
Customize the uninstallation to provide some actions/custom code before a category is uninstalled—For example, before having the Uninstaller undeploy a WAR file from an application server, you can choose to run a script to stop the application server. |
|
•
|
Reorder uninstallation steps—You can choose to reorder the uninstallation steps. This enables you to run scripts before any resource has been uninstalled. For example, you could choose to run scripts to clean up external resources that were installed in a location other than the installation directory—such as resources that were generated during installation—prior to beginning the main uninstallation steps. |
|
•
|
Uninstall merge modules—You can choose to uninstall merge modules from the base installation during the Uninstall sequence, rather than adding an Execute Uninstaller action to end of the Pre-Uninstall sequence to perform this task. |
Open topic with navigation