Recently I released a package versioned 0.8.3
and I'm ready to release a new package now. I was, however, struggling to implement a Major Upgrade
/ Upgrade
. It seemed like the WIX_UPGRADE_DETECTED
variable was never populated.
Then I ran across WiX3 major upgrade not working where the accepted answer states that:
- All setup versions (again, not file versions) must be 1.0 or greater.
And indeed temporarily bumping the major version of both packages to 1 seemed to fix the issue. However I can't retroactively change the version of the old package as it is already installed on thousands of computers.
What is the best way to cleanly uninstall the old package while installing the new one? Is there a better way than setting up a CustomAction
that runs msiexec.exe /x {PRODUCT-CODE}
?
Upgrade table
look like? (more context). Please open your compiled MSI with the free tools Orca, SuperOrca or InstEd (links towards bottom) or whatever other tool you have available to inspect the MSI. – ExcessiveUpgrade table
has following entry: UpgradeCode: {MYGUID-47A5-4E5A-BB2B-45800A2244C0} MinVersion: 0.0.0 MaxVersion: 0.8.2 Language: Attributes: 256 Remove: ALL ActionProperty: PREVIOUSFOUND – Cess