PreviousNext
Macrovision

Preventing the Current Installation from Overwriting a Future Major Version of the Same Product

InstallShield 2008

Project-Specific

Project

This information applies to the following project types:

To prevent end users from being able to install the current version of your product over a future major version of the same product, the Upgrades view should contain a major upgrade item, the major upgrade item should be properly configured to prevent the current version of your product from being installed over a future version, and your project should include a properly configured and scheduled type 19 custom action.

When you create a new Basic MSI or InstallScript MSI project, InstallShield automatically adds support for preventing the current installation from overwriting a future major version:

The following instructions explain how to manually add this support for projects that you created in InstallShield 12 or earlier and then upgraded to InstallShield 2008.

Task

Task

To manually add support for preventing end users from being able to install the current version of your product over a future major version:

  1. Use the Upgrades view to add a major upgrade item to your project.
  2. On the Common tab, select the Products using my Upgrade Code option.
  3. Configure the settings on the Advanced tab for the major upgrade item as follows:
    1. In the Minimum Version setting, specify the product version that you are using for your current project.
    2. Leave the Maximum Version setting blank. If a value is listed for this setting, delete it.
    3. If your project includes multiple languages, specify the language identifiers in the Language setting.
    4. In the Detect Only setting, select Yes; for all of the other Yes-No settings, select No.
    5. In the Detect Property setting, type a descriptive name such as the following one:
    6. FOUNDNEWERVERSION

  4. Add and schedule a type 19 custom action for your project to handle scenarios where an end user tries to install the current version of your product over a future major version:
    1. In the Custom Actions and Sequences view, right-click the Custom Actions explorer and click New Error.
    2. Select the new custom action.
    3. In the Error Message setting, type the error message text that should be displayed when an end user tries to install the current version of your product over a future major version.
    4. In the Install UI Sequence and Install Exec Sequence settings, select After FindRelatedProducts.
    5. In the Install UI Condition and Install Exec Condition settings, type the value that you specified in step 2f.

See Also




Copyright Information | Contact Macrovision