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: Maintenance mode
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
‎Aug 19, 2010
02:15 PM
Maintenance mode
Which event sets InstallScript, the MAINTENANCE variable to FALSE for a first-time installation, and TRUE for maintenance mode or uninstallation? How InstallShield determines a way to set it.
Which event sets value of system variable, MAINTENANCE?
Which event sets value of system variable, MAINTENANCE?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 20, 2010
01:37 PM
In the simplest terms, MAINTENANCE is set to TRUE if there is an uninstall key for an InstallScript project in the registry that points to a valid InstallScript log file on the machine (typically in C:\Program Files\InstallShield Installation Information\{ProductCode}).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 21, 2010
01:12 PM
But which event checks for that file? I am trying to create installer which uninstalls the product if installed already and then should proceed as a first time install. It uninstalls successfully but then
enters maintenance mode.
enters maintenance mode.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 23, 2010
11:40 AM
The InstallScript log file is opened by internal engine code before any script code is run. The MAINTENANCE variable is then initialized by an internal script function that is called prior to any events.
Regarding the behavior you are trying to obtain, it would be recommended that the product code for the project be changed, which will result in a new product being installed. Then, the old product can be removed by launching its uninstall string.
Regarding the behavior you are trying to obtain, it would be recommended that the product code for the project be changed, which will result in a new product being installed. Then, the old product can be removed by launching its uninstall string.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 24, 2010
01:20 PM
Thanks for the reply 🙂
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)