Two WIX bundles with same upgrade code - Uninstall one?

122 Views Asked by At

I have two different products both of which uses their own Wix Bundles and MSIs (one MSI each). While the UpgradeCode in each MSI is different, both the bundles ended up sharing the same UpgradeCode in their bootstrappers.

Is there a way to structure the MSIs or Bundles so that each product when installed uninstall the other one if detected while allowing its own major upgrades to go through?

Version of WIX: 3.10

1

There are 1 best solutions below

3
Christopher Painter On

An MSI can have more then one MajorUpgrade rule. That is Product B can have a rule that searches for Product A and remove it. Same for A to remove B. This way the two MSI will always be mutually exclusive and will major upgrade them selves.

The bootstrapper part I think isn't a factor here.