Making Wix uninstall an old plug-in when performing an upgrade
- by IanM
I have a main product which is installed using Wix and has its own UpgradeCode
In between releases of the main product we sometimes release plug-ins which add or patch some functionality. The plug-ins are packaged in their own Wix generated .msi files with their own UpgradeCodes and generally install addition files is a separate folder from the main product.
I want to create a new version of the main product which includes the functionality which was previously available in a plug-in. A user upgrading to the new version will no longer need the plug-in so it would be nice to uninstall it as part of the upgrade.
Is there a way of making Wix uninstall a product with UpgradeCode2 when it is upgrading product with UpgradeCode1?