PDA

View Full Version : Set variable by commandline



Michel
10-24-2007, 07:59 AM
Is it possible to set a variable by starting the setup with a commandline?

Example

My setup has a %_MVG_UPDATE%. This variable gets set by checking the registry bla bla bla.

If it's TRUE, I'll hide some wizard dialogs. This way the users doesn't have to go to all dialogs again.

But sometime when I run it I like to see the dialogs. So I like to set a variable %_MVG_OVERRULE% = TRUE by starting the setup.exe /admin

Is this possible?

Tnx

Michel

andrea
10-24-2007, 08:11 AM
Hi Michel,

Yes, absolutely no problem. See "Command Line Options (Installer)" in the manual or "F1" help.

setup.exe /V _MVG_OVERRULE 1 will set the variable to TRUE

By the way, you can also completely control the command line options. For example, use the Get System Information (Command Line) function and then use the InStrI String Function to check for passed options.

Does this help?

Andrea
Does this help?

Andrea

Michel
10-24-2007, 08:22 AM
Get System Information (Command Line) function.

This is the way to go :)

Tnx

andrea
10-24-2007, 08:24 AM
You are welcome :)

Just let us know if you have further questions.

Andrea