Reputation: 685
I maintain two flavors of an application. Only one should be installed on each machine.
Let's say that I got application A installed on a machine. Now the user wants to install application B. The installer should replace A and install B.
Is it possible to tell the windows installer via WIX to silently replace another application?
Upvotes: 1
Views: 73
Reputation: 35841
You can actually do this via the same mechanism that supports a major upgrade. Give each MSI a unique UpgradeCode
. Then add an Upgrade
element that detects the other MSIs UpgradeCode
. Then add an UpgradeVersion
element that will detect the other MSIs version correctly (could be the version number). You can use the Property
attribute from the UpgradeVersion
element to display special UI or otherwise condition stuff in your MSI to say, "Hey, I detected the other application".
Upvotes: 1
Reputation: 8563
I would suggest using the WiX bootstrapper functionality called Burn. You can create a bootstrapper (setup.exe) containing the logic for what packages need installed/removed.
Upvotes: 0