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

List of Events and UPDATEMODE

Is there a list of events and when and what order they are triggered?

In particular, I'm interested in knowing when the setup is running in update mode (how can I tell?) so I can make some registry changes but I can't tell what events to add those adjustments.
Labels (1)
0 Kudos
(4) Replies
Barbara
Level 7

What kind of setup project do you use? Basic MSI or Installscript?
If you use a basic MSI setup and start the installation with the setup.exe you can use a couple of MSI properties to determine the status of the setup: IS_MAJOR_UPGRADE, IS_MINOR_UPGRADE, UPGRADINGPRODUCTCODE and so on.

Barbara
0 Kudos
DataAnalyzer
Level 8

Thanks for your help. I'm using Installscript.

The program uses code to create a shortcut that has the version number as one of it's command line parameters. I need to change that if an update is installed but I can't seem to find the event to interject that change during an update.
0 Kudos
DataAnalyzer
Level 8

Never got an answer to this a few years ago. The problem has arisen again. What events are there in an InstallScript to handle update/upgrade events?
0 Kudos

OnShowUI() has

 

if ( UPDATEMODE ) then
    bUpdateMode = TRUE;
endif;

if ( MAINTENANCE ) then
    bMaintenanceMode = TRUE;
endif;

 

 

0 Kudos