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