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: How can I tell if new install or maint install BASIC MSI
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 08, 2012
11:46 AM
How can I tell if new install or maint install BASIC MSI
I'm writing a basic msi and I'm using some installscript custom actions. I have one custom action that I call in a new install and in a modify install. I have 2 lines of code in that script that I want to skip if the install is running in the modify mode.
What is the easy way to check for which mode the install is running?
I want to know if it is a new install, running maintiance mode, modify, repair or uninstall?
Thank you
Brandon
What is the easy way to check for which mode the install is running?
I want to know if it is a new install, running maintiance mode, modify, repair or uninstall?
Thank you
Brandon
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2012
09:52 AM
Installscript has several System variables .
MAINTENANCE var will be set to True if already installed.
if ( MAINTENANCE ) then
I only work with installscript project so I am not positive what is set in a basic MSI. I believe MAINTENANCE is set.
Hope that helps you.
MAINTENANCE var will be set to True if already installed.
if ( MAINTENANCE ) then
I only work with installscript project so I am not positive what is set in a basic MSI. I believe MAINTENANCE is set.
Hope that helps you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 10, 2012
05:06 PM
I would refer you to Robert Dickau's article from a few years back -
http://kb.flexerasoftware.com/doc/DocumentRepository/Installation/InstallShield/InstallShield%202008%20Professional/01_Public/Product%20Info/msiconditions.pdf
http://kb.flexerasoftware.com/doc/DocumentRepository/Installation/InstallShield/InstallShield%202008%20Professional/01_Public/Product%20Info/msiconditions.pdf
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)