cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Provide Notification of a Major Upgrade

Provide Notification of a Major Upgrade

Summary

How to notify users when a major upgrade is being run

Synopsis

Windows Installer Major Upgrades silently uninstall the previous version(s) by default. This article describes how to notify customers when a major upgrade is being run and an older version is being removed. By default, a major upgrade looks identical to a first-time installation, displaying the default InstallWelcome dialog box.

Discussion

To inform the user that a major upgrade is about to take place, you can add a text control to the InstallWelcome dialog box, and conditionally display the control only if the FindRelatedProducts action places any old product codes in the action property. Because the FindRelatedProducts action runs before InstallWelcome is displayed, you can safely use the action property from the Upgrade table in conditions.

The following steps create an installation that provides notification of a major upgrade:

  1. Select the major upgrade item from the Upgrades view.
  2. Click the Advanced tab and take note of the Detect Property listed in the Additional Settings section. This property is set if a previous version targeted by a major upgrade is found and remains null if no such version is found. By default, this property is called ISACTIONPROP1.
  3. In the Dialogs view, modify the InstallWelcome dialog to add a new Text Area control that will display when your install is running as a major upgrade.
  4. On the Behavior section of the dialog, select the control you have just added and add the following conditions (replace ISACTIONPROP1 with the property found in step 2):
    • Action: Hide; Condition: Not ISACTIONPROP1
    • Action: Show; Condition: ISACTIONPROP1
At run time, the text control will be displayed if the install is running as a major upgrade or otherwise it will be hidden if the install is running as a first time install.

Additional Information

For more information on major upgrades, see the Help Library topic Create a Major Upgrade.

For more information on the custom action wizard, see the InstallShield Help article entitled Custom Action Wizard.

Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Nov 28, 2007 07:55 PM
Updated by: