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
- :
- default variable with command-line override?
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
‎Oct 02, 2008
01:24 AM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2008
08:00 AM
Try the Property Manager, and be sure to create your variable name with all capital letters.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2008
11:29 AM
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