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

UpgradeCode and detecting related bundles

In this section we will find out how to detect and update older versions of your bundle.

Updating existing bundles

Each time that you compile your bootstrapper project in Visual Studio, it is assigned a new identity—a GUID called BundleId that you cannot change. In this respect, every bundle that you create is unique. The UpgradeCode attribute allows us to link two bootstrappers, making them related bundles. This relationship allows one bundle to detect and upgrade the installed packages of the other.

The UpgradeCode attribute is set on the Bundle element, as shown:

<Bundle Name="Awesome Software Bundle"
        Version="1.0.0.0" 
        Manufacturer="Awesome Company"
        Copyright="(c) All rights reserved."
 UpgradeCode="3601032C-A8C9-4323-88E0-1967A9C2145E"> ...

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