09.12.2012 Views

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

InstallShield 2012 Spring Express Edition User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 17: Updating Applications<br />

Upgrades Overview<br />

In a major upgrade, the product changes are large enough to merit changes to both the product version<br />

number and the product code, as well as the package code. An example is updating version 1.2 of a<br />

product to 2.0. A major upgrade acts like a first-time installation if an earlier version is not present. If an<br />

earlier version is present, a major upgrade typically uninstalls the earlier version and then installs the<br />

new version.<br />

How Major Upgrades Work<br />

As the Windows Installer help implies, you must change the product code for the latest version of your<br />

installation in order to perform a major upgrade.<br />

Note: You can set the product code for your installation in the General Information view. It does not matter what the new<br />

product code is, as long as it is unique.<br />

Once you update the product code for your latest installation, you need to use the Upgrade Paths view to<br />

specify information for any previous version or versions that you want to upgrade. You can do this in the<br />

latest installation project for your product.<br />

For more information about what is involved in creating an upgrade, see Creating Full-Installation<br />

Upgrades.<br />

Major Upgrades at Run Time<br />

When an earlier version of the product is not available on the target machine and the end user runs a<br />

major upgrade, the installation behaves as a first-time installation.<br />

If an earlier version of the product does exist on the target machine and the end user runs a major<br />

upgrade, they will encounter almost the exact same installation experience as if they were to install the<br />

latest application on a clean target machine. The difference is that before installing its new resources, the<br />

installation will first remove the old application version and its resources from the target machine. This<br />

removal is reflected in the progress bar of the Setup Progress dialog, which gives end users the ability to<br />

see the progress of the uninstallation. After the removal of the previous installation has completed, the<br />

resources from the latest installation will then be installed onto the target machine.<br />

This type of upgrade is a complete uninstallation and then reinstallation of all of the resources<br />

associated with your application. Therefore, any data for your application that has been configured by<br />

the end user may be completely deleted from the end user’s machine. If you need to retain some of the<br />

end-user data, you will need to create a custom action that backs up this data, and then replaces it after<br />

the installation of new data has completed.<br />

Minor Upgrades<br />

<strong>Edition</strong>: You can create a minor upgrade packaged as a full installation in <strong>InstallShield</strong> Premier <strong>Edition</strong> or <strong>InstallShield</strong><br />

Professional <strong>Edition</strong>. You can also create a minor upgrade packaged as a QuickPatch project in <strong>InstallShield</strong> Premier<br />

<strong>Edition</strong>, <strong>InstallShield</strong> Professional <strong>Edition</strong>, or <strong>InstallShield</strong> <strong>Express</strong> <strong>Edition</strong>.<br />

A minor upgrade is a change to the product database and files large enough to merit a change to the<br />

ProductVersion property but not to the ProductCode property. In other words, both the package<br />

code and the product version number are different than those in the earlier installation package, but the<br />

product code of the minor upgrade does not change. An example is updating version 1.1 of a product to<br />

320 ISE-1900-UG00 <strong>InstallShield</strong> <strong>2012</strong> <strong>Spring</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!