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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.