cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RevenantBob
Level 3

Registry Component Condition on Upgrade

I have a component for a Basic MSI project. It has a condition:

UPGRADINGPRODUCTCODE<>"" AND REMOVE=""

I want the component to install whenever an older version of the product is being uninstalled with the newer MSI executing it.

From the MSI logs, it looks like this condition is being evaluated before the RemoveExistingProducts action.

Is there any work around for this?
Labels (1)
0 Kudos
(1) Reply
RevenantBob
Level 3

Looks like that UPGRADINGPRODUCTCODE is only set on the uninstalling MSI.

IS_MAJOR_UPGRADE and IS_MINOR_UPGRADE is what I'm looking for it seems 😃
0 Kudos