Reputation: 2688
Using WiX, we would like to be able to uninstall a previous version if it is already installed. I am able to do this automatically based on the thread here.
But how does one go about prompting the user if they actually want to uninstall the old version first, before running the RemoveExistingProducts action? ie. through a custom menu item that only launches if FindRelatedProducts returns 1, for example?
Upvotes: 2
Views: 1608
Reputation: 21416
You can try this approach:
This way the upgrade rule detects older versions and shows a custom dialog if it does. This custom dialog can then take the user choice and use it to skip the upgrade.
Upvotes: 2