This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How can I determine I'm doing a MajorUpgrade or MinorUpgrade
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2009
05:25 AM
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.
I'd like to determine programatically in an CustomAction whether I'm doing a MajorUpgrade or MinorUpgrade, is that possible?
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2009
06:12 PM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 18, 2009
09:27 PM
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!