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
- :
- Basic MSI, How do I detect Upgrade Mode
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
May 21, 2012
08:51 AM
Basic MSI, How do I detect Upgrade Mode
I have a basic MSI that I'm working on and I have the install, Modify mode and repair modes all working the way I want. No I need to add a couple of custom actions to the upgrade mode but I'm not sure what to look for to see if I'm in upgrade mode.
Is it running in Maintiance mode? Can I insert a custom action after Maintiance Welcome?
What property and Value do I look for?
Thank you
Brandon Lowe
Is it running in Maintiance mode? Can I insert a custom action after Maintiance Welcome?
What property and Value do I look for?
Thank you
Brandon Lowe
(1) Reply
May 22, 2012
12:32 AM
Hi Brandon,
you need to know what sort of upgrade you are working on.
Are you thinking of a minor upgrade, a major upgrade or a small update?
See the following document to see what is supported with each of them:
http://kb.flexerasoftware.com/doc/Helpnet/installshield18helplib/MajorMinorSmall.htm
Once you have decided, you can then find out what condition to use.
To give you a clue:
But don't forget the following points:
you need to know what sort of upgrade you are working on.
Are you thinking of a minor upgrade, a major upgrade or a small update?
See the following document to see what is supported with each of them:
http://kb.flexerasoftware.com/doc/Helpnet/installshield18helplib/MajorMinorSmall.htm
Once you have decided, you can then find out what condition to use.
To give you a clue:
- For a patch, you could copy-paste the condition that displays the PatchWelcome dialog.
- For a minor upgrade, you could copy-paste the condition that displays the SetupResume dialog.
- For a major upgrade, you can use the property set in the "ActionProperty" column in the Upgrade table.
But don't forget the following points:
- You also need to think about silent installation. So your custom action might have to be sequenced in the InstallExecuteSequence.
- Some properties like IS_MINOR_UPGRADE or IS_MAJOR_UPGRADE are only set if the installation is launched with setup.exe. This is not always applicable when a system administrator performs a silent installation. So, I would not use such properties in your conditional custom actions.
- Minor upgrades should be avoided, in my humble opinion. And you are likely to face some problems when deploying minor upgrades if you have used dynamic links in your Basic MSI project.