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
- :
- Minor / Major upgrade API?
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
Dec 12, 2007
02:22 PM
Minor / Major upgrade API?
Is there a way to determine if the MSI being run is a major / minor upgrade via a API call? I'm running an MSI via a command line and need to run with different parameters depending on the upgrade type. Thanks in advance for your help.
Tim.
Tim.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 12, 2007
09:57 PM
Doesn't setup.exe handle this for you?
Basically you have to query your MSI to get's ProductCode and Package Code. Then you have to query MSI to findout if that ProductCode is already installed. If it is installed, you have to find out the PackageCode that it installed it. If the two PackageCodes are the same then it's a MaintenanceUI scenario. If they are different, it's a Small Update or Minor Upgrade scenario that requires REINSTALL=ALL REINSTALLMODE=vomus. If the ProductCode is not installed, it could be either a new install or a Major upgrade but the course of action is the same since once running FindRelatedProducts and RemoveExistingProducts will take care of it for you.
Basically you have to query your MSI to get's ProductCode and Package Code. Then you have to query MSI to findout if that ProductCode is already installed. If it is installed, you have to find out the PackageCode that it installed it. If the two PackageCodes are the same then it's a MaintenanceUI scenario. If they are different, it's a Small Update or Minor Upgrade scenario that requires REINSTALL=ALL REINSTALLMODE=vomus. If the ProductCode is not installed, it could be either a new install or a Major upgrade but the course of action is the same since once running FindRelatedProducts and RemoveExistingProducts will take care of it for you.
![](/skins/images/089A6DFE1F4989CB8CCC689A38D62C96/responsive_peak/images/icon_anonymous_message.png)