cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DataAnalyzer
Level 8

What events are related to Upgrade

When the program runs as an upgrade, what events are available or values set to know we're in that mode?
Labels (1)
0 Kudos
(4) Replies
DLee65
Level 13

For basic MSI installs the property UPGRADINGPRODUCTCODE is set during an upgrade.
For a list of all properties available look at http://msdn.microsoft.com/en-us/library/aa370905(v=vs.85).aspx

Scroll down to the section regarding Installation Status Properties.
0 Kudos
DataAnalyzer
Level 8

I'm sorry for being clueless, but I'm confused by this. What property is set to this value or what value is this property if it's an upgrade?

Is there an example of how I would use it in an InstallScript and in which event? Thanks in advance.

DLee65 wrote:
For basic MSI installs the property UPGRADINGPRODUCTCODE is set during an upgrade.
For a list of all properties available look at http://msdn.microsoft.com/en-us/library/aa370905(v=vs.85).aspx

Scroll down to the section regarding Installation Status Properties.
0 Kudos
DLee65
Level 13

I do not know what InstallScript uses for determining if the installation is an upgrade. Your original post did not specify the installation type.

For the basic MSI windows installer property I would encourage clicking on the link I provided and reading about the properties, including the UPGRADINGPRODUCTCODE. It will also teach you about its value at runtime, which should be your application's ProductCode.

If your installation package is a pure InstallScript, hopefully someone else can assist with your question.
0 Kudos
DataAnalyzer
Level 8

We are using InstallScript. Never got a response to this a few years ago. Trying to address this issue again.
0 Kudos