cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Brandon_Lowe
Level 6

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
Labels (1)
0 Kudos
(2) Replies
restrain64
Level 3

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.
0 Kudos
ITI_Randy
Level 6

0 Kudos