I am trying to stop a Custom Action from running when the installer is doing an upgrade. I know that the Expression: (REMOVE="ALL" AND (NOT UPGRADINGPRODUCTCODE)) Is supposed to make this work.
However even with that set - when an installer of a newer version is run and it automatically uninstalls the old version and installs the new it still runs the script. I am assuming that when an installer automatically removes and old version and installs a new one it is NOT considered an "Upgrade" so this expression is TRUE. As opposed to creating an upgrade installer which would probably set this to false.
However I need to determine if the user is Uninstalling (Removing) - and it is NOT caused by the auto-remove/install of a newer version. So only if they specifically asked to remove it from their computer.
If this is not possible via the expression - is there a way I can set a property that could be passed to my vbs script so I can check in there and not perform an action in that case?
Thanks,
Jonathan