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

Major Upgrade help please

We are doing a Major Upgrade. When the Major Upgrade occurs, it runs the currently installed .msi to uninstall it, then runs the new version to install it.

PROBLEM: We have a custom action that runs when we remove our software. The problem is, when a Major Upgrade occurs, it is running when the original .msi runs. Since we are upgrading our software, we don't want it to run. Only when we are truly uninstalling our software for good.

The condition on this custom action should be something like:
REMOVE="ALL" and (NOT Upgrading)

I can't seem to find a way to do the (NOT Upgrading)

Thanks in advance for all your responses.

BTW, InstallScript MSI project in IS2009. Thanks
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

An action in the newer version can use the "action property" from the Upgrade table (by default something like ISACTIONPROP1) as a condition to detect (after FindRelatedProducts) if a major upgrade is taking place.

The older version needs a condition involving UPGRADINGPRODUCTCODE to detect if it's being removed as part of a major upgrade.
0 Kudos