cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ussraf
Level 6

How can I determine I'm doing a MajorUpgrade or MinorUpgrade

Hi all,

I'd like to determine programatically in an CustomAction whether I'm doing a MajorUpgrade or MinorUpgrade, is that possible?

Thanks.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

You can evaluate a condition in code using MsiEvaluateCondition or Session.EvaluateCondition. For a major upgrade, see if the action property in the Upgrade table is defined after FindRelatedProducts runs (by default it's ISACTIONPROP1, but check the Upgrades view), and for a minor upgrade perhaps try the condition used by the SetupResume dialog box.
0 Kudos
ussraf
Level 6

RobertDickau wrote:
You can evaluate a condition in code using MsiEvaluateCondition or Session.EvaluateCondition. For a major upgrade, see if the action property in the Upgrade table is defined after FindRelatedProducts runs (by default it's ISACTIONPROP1, but check the Upgrades view), and for a minor upgrade perhaps try the condition used by the SetupResume dialog box.


Hey, thank you Robert!
0 Kudos