[wix-users] Issue with RelatedBundle prepending its Guid in BundleUpgradeCode value in registry.

Rob Mensching rob at firegiant.com
Wed Nov 21 10:59:07 PST 2018

None of that is documented Burn behavior and could change at any time. You should use a different mechanism if you want to depend on it working consistently.
 Short replies here. Complete answers over there: http://www.firegiant.com/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Karthikeyan Vedi via wix-users
Sent: Tuesday, November 20, 2018 11:45 PM
To: wix-users at lists.wixtoolset.org
Cc: Karthikeyan Vedi <karthikeyanvedi at gmail.com>
Subject: [wix-users] Issue with RelatedBundle prepending its Guid in BundleUpgradeCode value in registry.


We have Wix bundle with UpdrageCodeA, We want to relase a newer version of Bundle with new UpgradeCodeB in sense that we do not want to support/supply any updates for UpgradeCodeA.

If user installs Bundle(UpgradeCodeB) while already having older bundle(
UpgradeCodeA) installed, we need to remove the older bundle. So in the newer bundle we added it as <RelatedBundle Id="UpgradeCodeA"

This works as expected that it removes the older bundle and installs a newer bundle. But in the registry entry at "
key BundleUpgradeCode has "{UpgradeCodeA} {UpgradeCodeB}".

Here. is there a reason why UpdrageCodeA is prepended before the actual BundleUpgradeCode? when UpdrageCodeA is not actually installed. Is there a way this UpdrageCodeA does not get prepended or any documentation regarding RelatedBundle.

Issue is we have client/service application that reads this BundleUpgradeCode from the regisry and deliver updates based on the BundleUpgradeCode, In this case we have two upgrade codes listed but only one is actually installed and we do not want to deliver updates for a bundle that is not installed. We have come up with a workaroud - currently our update client application only reads the first Guid from BundleUpgradeCode, so we want to be the value of BundleUpgradeCode like "UpgradeCodeB UpgradeCodeA" so only the updates for  newer bundle(UpgradeCodeB) is delivered. for this we added another <RelatedBundle Id="UpgradeCodeB" Action="Upgrade"/> before <RelatedBundle Id="UpgradeCodeA" Action="Upgrade"/> to achive this but not exactly sure if this has any side effects or it this any other better solution for this issues.

Thanks for your help.

WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

More information about the wix-users mailing list