Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Upgrade side effects

4 replies to this topic


  • Members
  • 4 posts

Posted 26 September 2003 - 12:51


I am doing a major upgrade which removes my previous install.
This removal executes an installshield script of my previous install.
The value of MAINTENANCE is does not seem to TRUE so there is a difference between a manual remove and an upgrade remove.
Why ?
And how do you circumvent this ?
I use Installshiled Developper 8.2 with scripting.
Anny help is appreciated.

Hugo van Putten


  • Moderators
  • 1,447 posts

Posted 30 September 2003 - 03:15

It is not quite clear to me exactly what you are asking. During a major update you are effectively installing a brand new product and removing an existing product in the process. The setup you install on top of the existing setup will uninstall your existing installation silently and then install itself. You can detect when a setup is uninstalling an existing installation by checking the property UPGRADINGPRODUCTCODE. If this is set the uninstall is not manually initiated.
-Stein Åsmul


  • Members
  • 4 posts

Posted 30 September 2003 - 07:23

What i am trying to do is a major upgrade.
First i install version 5.25.
Then i upgrade to version 5.30
During the uninstall fase i get an error message from, i gues, 5.25 uninstalling.
I think that when 5.25 is uninstalled a script from 5.25 is executed.
The question is what is the state of the system during this uninstall ?
Is it being uninstalled in maintenance mode ? meaning MAINTENANCE = TRUE ?
Or is it being uninstalled in the same mode as the update is being installed meaning MAINTENACE is FALSE.
The actions of the uninstall depend on the MAINTENACE property.
I wrote both the scripts for 5.25 and 5.30.
I can not change the scripts for 5.25 since it has been shipped.


  • Full Members
  • 522 posts

Posted 30 September 2003 - 09:10

As far as I know, MAINTENANCE is a user property, not set by the Windows Installer. Maybe InstallShield sets it in one of the dialogs, so it is turned off (the older version is removed without any UI).



  • Members
  • 4 posts

Posted 06 October 2003 - 10:35

In a new install i CAN go for UPGRADINGPRODUCTOCDE.
But what about the version that is in the field ?
It uses MAINTENANCE and its code is executed whenever i try to upgrade ?
How do i circumvent a problem in a PREVIOUS version i can not change ?
Can i deinstall an installation made by installshield developper without it executing its script ?