I create my msi using wix and now I have situation where I want to run my custom action only on upgrade from older version to newer version.I have tried UPGRADINGPRODUCTCODE as the condition but it does not work.
0
votes
1 Answers
2
votes
UPGRADINGPRODUCTCODE
is set in the context of the uninstallation of the prior version. What you are looking for is the property used as the Action Property of your Major Upgrade. It appears the MajorUpgrade element sets WIX_UPGRADE_DETECTED
as well (perhaps as the action property).