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

UPGRADINGPRODUCTCODE or Not UPGRADINGPRODUCTCODE

I am doing a Major Upgrade and I am trying to stop services before InstallValidate in the ExecuteSequence. I successfully stopped the services using the "Not UPGRADINGPRODUCTCODE" condition.

According the the msdn web site (link bleow) "UPGRADINGPRODUCTCODE" should be used and I should not use negation.

Yea; yea; - I know I should be satified that it's working but this condition seems to be backwards. Any thoughts?


(link)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/upgradingproductcode.asp

kr
0 Kudos
(1) Reply
Stefan_Krueger
Level 9

UPGRADINGPRODUCTCODE is set when your package is being uninstall as part of a Major Upgrade. It is not set in any other case. So if you want to stop a service only in case of Major Upgrade the condition should be UPGRADINGPRODUCTCODE (without Not).
Note that all of this applies to the OLD version of your setup which is being uninstalled, in other words: the new version passes UPGRADINGPRODUCTCODE to the old version when it launches it to uninstall it.
Stefan Krueger
InstallSite.org
0 Kudos