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

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.
Labels (1)
0 Kudos
(1) Reply
Christopher_Pai
Level 16

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.
0 Kudos