I'm using InstallShield 2012 Spring - Premier Edition and I'm trying to replace the existing install of our software (if it exists) with whatever is in the new Setup script when Setup script is run again.
I have read some things online that say to configure Minor and Major upgrade settings.
I have an InstallScript Project and I cannot find how to do Minor and Major upgrades, like it can be done with Basic MSI projects. I read online that this can be done with MSI projects by going to Installation Designer and then Media/Upgrades and then configure the upgrade. This option is not available within InstallScript projects.
What can I use with InstallScript projects to change this behavior? Thank you in advance.
I believe you need to add a few more event handlers to your main script. To start, you'll need to add the following handlers if they're not already present:
The important thing is to have OnShowUI in order to run the appropriate "Before" method. Below is what I do; you'll need to do whatever you need to do in the other methods (mine are pretty domain-specific and I can't provide those directly).
I will say that in the OnUpdateUIBefore, I commented out the following code:
I don't remember why, but I suspect it was causing the Update mode to not work as I expected.
I automate my Installshield builds (via COM--see this answer for basic info if interested) and part of that process involves incrementing the minor version in order to trigger Update Mode when the new installer is ran against an older version.
Good luck!