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

default variable with command-line override?

I want to create a variable that defaults to a value of 1. However, I also want a user to be able to set a command-line variable using msiexec.exe to override this. Basically, I want the default value to to TRUE, but a user can override this from the command line:

msiexec /qn /i installer.msi MYVARIABLE=0

Where can I set the default variable in the basic MSI project which would also allow the command-line variable to override this?

Thanks,

Don Metzler
Labels (1)
0 Kudos
(2) Replies
KathyMorey
Level 10

Try the Property Manager, and be sure to create your variable name with all capital letters.
0 Kudos
dmetzler
Level 6

KathyMorey wrote:
Try the Property Manager, and be sure to create your variable name with all capital letters.


Thanks - this worked. I was concerned that the property manager value may be set *after* the value on the command line.

Thanks,

Don
0 Kudos