Preparing a major upgrade

A major upgrade is a full installation package that removes any older versions of the same product. To create one, you'll need to do the following:

  • Change the Product element's Id attribute to a new GUID
  • Increment the Product element's Version attribute
  • Add and configure a MajorUpgrade element

We'll go over each step. Before we get to that, let's make an MSI that will install the old software—the software to update. You can use the following markup in a new WiX project called OldInstaller.

You may recall that you can use an asterisk (*) for Id in the Product element, and WiX will choose a new GUID for you each time you compile the project. You can do that here, if you choose to. However, we will use a hardcoded GUID to draw ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.