Re-creating the InstallAnywhere Uninstaller and Associated Components

InstallAnywhere 2021

When you create a new InstallAnywhere project, it contains an InstallAnywhere Uninstall Component by default. This component is available in the Components view of the Organization page.

By default, the component’s name is InstallAnywhere Uninstall Component and its short name is Uninstall_ZG‑IA; these names are not editable in the Components view.

If you inadvertently delete the InstallAnywhere Uninstall Component and want to re-create it, you can do so.

To re-create the InstallAnywhere Uninstall Component:

1. If one an Create Uninstaller action is not available in the project, add one:
a. In the Advanced Designer, on the Sequence page, click Install. The Install view opens.
b. In the Visual Tree, add a Create Uninstaller action to the project, if one is not already present.
2. Add the InstallAnywhere Uninstall component:
a. In the Advanced Designer, on the Organization page, click Components. The Components view opens.
b. Click the Add Component button. InstallAnywhere adds a new, untitled component to the Component List.
c. In the Component customizer at the bottom of the screen, in the Name setting, enter the following value:

InstallAnywhere Uninstall Component

InstallAnywhere adds the name Install automatically in the Short Name setting and changes this setting to read-only.

3. Configure the Create Uninstaller action:
a. In the Advanced Designer, on the Sequence page, click Install. The Install view opens.
b. In the Assign to list, select Components.
c. In the Visual Tree, select the Change $PRODUCT_NAME$ Installation item, and then select the Install option in the Components list.
4. Configure the InstallAnywhere Uninstall component:
a. In the Advanced Designer, on the Organization page, click Components. The Components view opens.
b. In the Component List, select the InstallAnywhere Uninstall Component.
c. In the Component customizer, click the Choose Key File button. The Choose a Key File dialog box opens.
d. Select the location of the uninstaller: _$PRODUCT_NAME$_installation.
5. Save and close the project, and exit InstallAnywhere.
6. Edit the shortName property of the InstallAnywhere Uninstall component:
a. Open this InstallAnywhere project file in a text editor and locate the object named com.zerog.ia.installer.InstallComponent for which the componentName property is set to InstallAnywhere Uninstall Component.
b. Set the shortName property of this component from Install to Uninstall_ZG-IA.
c. Save the project file.
7. Check the shortName property:
a. Open the project file in the InstallAnywhere Advanced Designer.
b. In the Advanced Designer, on the Organization page, click Components. The Components view opens.

You will see that the Short Name field for the InstallAnywhere Uninstall Component is now set to Uninstall_ZG-IA.