This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: installing older versions over newer versions
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2011
08:18 AM
installing older versions over newer versions
I have a few projects where you can Install a new version then go back to a previous release and attempt to "upgrade" down to the older version. It should spit out a message saying a newer version is already installed. But it doesn't. It just closes the installer without a word. Anyone know how to configure the desired behavior here?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 22, 2011
01:55 PM
here I am again responding to my own posts....
So normally installshield is supposed to handle this automatically with a custom action called "ISPREVENTDOWNGRADES" which is in the ui sequence right after findrelatedproducts (i believe).
For some reason this does not always work. I think something we do in several of our projects must break this. If you create a custom error and insert it into the action sequence before the default one then rebuild your solution it should work. I tested this by manually incrementing the version after a build and installing the one with the higher build number before attempting to install the older one. the error dialog then popped up.
Tried this same trick with another installer and it didnt do anything differently.
Not sure what the deal is but this should at least work for some cases.
So normally installshield is supposed to handle this automatically with a custom action called "ISPREVENTDOWNGRADES" which is in the ui sequence right after findrelatedproducts (i believe).
For some reason this does not always work. I think something we do in several of our projects must break this. If you create a custom error and insert it into the action sequence before the default one then rebuild your solution it should work. I tested this by manually incrementing the version after a build and installing the one with the higher build number before attempting to install the older one. the error dialog then popped up.
Tried this same trick with another installer and it didnt do anything differently.
Not sure what the deal is but this should at least work for some cases.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 25, 2012
03:09 PM
So this came up again in another product recently. I found this posting: http://forum.installsite.net/index.php?showtopic=17917
which had this important tidbit "It depends on whether you are changing the ProductCode (Major or Minor Upgrade) "
I immediately changed the productCode and tried a prevent downgrade. The dialog showed up as expected. So the difference is whether or not your action matches the type of downgrade it is preventing. In this case I think the installed version must be a valid major upgrade from the product you are trying to downgrade to in order to see the dialog.
Does anyone know how to do this with a minor downgrade?
which had this important tidbit "It depends on whether you are changing the ProductCode (Major or Minor Upgrade) "
I immediately changed the productCode and tried a prevent downgrade. The dialog showed up as expected. So the difference is whether or not your action matches the type of downgrade it is preventing. In this case I think the installed version must be a valid major upgrade from the product you are trying to downgrade to in order to see the dialog.
Does anyone know how to do this with a minor downgrade?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 27, 2012
11:08 AM
There seems to be a lot more to this. Cross linking my post on the install site forums:
http://forum.installsite.net/index.php?act=ST&f=31&t=20869&st=0#entry58160
http://forum.installsite.net/index.php?act=ST&f=31&t=20869&st=0#entry58160
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)