Redigera

Dela via


An Upgrade Example

The following sections present an example of authoring an upgrade package for the application described in An Installation Example. An example of a minimal user interface for this sample is provided in the Windows SDK Components for Windows Installer Developers as the file Uisample.msi. If you have the SDK, you have access to all the tools and data necessary to reproduce the sample installation package, user interface, and sample upgrade package.

This example illustrates how to create a Windows Installer package that upgrades the hypothetical product MNP2000 to a new product called MNP2001. The example upgrade package applies a major upgrade to the product which requires changing the product code. For more information about major upgrades, see the topic on Major Upgrades in the Patching and Upgrades section.

The sample upgrade package has the following specifications: