O'Reilly logo

WiX 3.6: A Developer's Guide to Windows Installer XML by Nick Ramirez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required