View Full Version : property UPGRADINGPRODUCTCODE

11-11-2003, 09:32 AM

To detect a major upgrade I check the UPGRADINGPRODUCTCODE property. In which Event should I put this check? Now it's empty all the time while there is a major upgrade..


11-11-2003, 12:37 PM
I am using a different method to detect a major upgrade. This idea is in the same line as what you are trying to do by checking a property.

Provided that you have prepared your setup properly for a major upgrade, you should check the OLDPRODUCTS property. All setups have an upgrade code, the one used in a setup that performs a major upgrade is different.

Take a look at these following threads to get started:
http://community.installshield.com/showthread.php?s=&threadid=116734 or http://community.installshield.com/showthread.php?s=&threadid=113972

You'll find snippets of codes that do just that.

11-12-2003, 10:33 AM
Thanks Laurent, I can detect a major upgrade now, but I still have a problem. I set 2 dialogs in the OnEnd event (Readme-file and FinishReboot), and after the silent uninstalling of RemoveExistingProduct both dialogs are shown. How can I prevent that these dialogs are shown? The OnEnd event is not fired yet, because setup starts installing the new version after the 2 dialogs. I have no idea why the 2 dialogs are appearing... Have you any idea?

Thanks, Tom

11-12-2003, 12:59 PM
Hi Tom,

I am not sure about the dialogs. I don't play with them too often, but I would check their respective sequence numbers.
Probably by invoking them in OnEnd, their sequence numbers were changed somehow.
In a sense, the OnEnd event might be fired because you are uninstalling, which has an end, then you are installing a new product.
Also see if you can add a condition so that they don't show if you are performing a major upgrade.

Do you absolutely need these dialogs out of their natural sequence?