Variables overwritable state.
Posted: Mon Dec 06, 2010 7:39 am
I'm puzzled by variables and I need someone to explain it to me.
Because "practice makes perfect", I've tried to figure it out myself. This is what I think is going on.
There are 2 types of variables.
1. Pre-defined (like REMOVE, MAINTENANCE, NEEDSUPGRADE etc.)
2. User defined (like MYVAR1, HELLOWORLD, FAILURE etc.)
There are 2 ways of running an installer:
1. Silent (no user interaction)
2. 'Loud'
(with user interaction)
If you run silent, you can overwrite pre-defined and user defined variables by adding them to your CMDLINE.
Inside your script, the calls to 'Set Variable' don't have any effect, they will NOT change the value passed via the CMDLINE.
If you run 'loud', you can overwrite pre-defined variables. You can't overwrite user defined variables.
Inside your script, the calls to 'Set Variable' don't have an effect on the pre-defined variables, they will NOT change the value passed via the CMDLINE.
Inside your script, the calls to 'Set Variable' will set the value for the user defined variable, they WILL change the value passed via the CMDLINE.
If you specify no CMDLINE, then the script 'says' it all.
I'd like someone of InstallAware to have quick look and tell me if I'm right
I had a hard time figuring this one out by the help file itself, some clarification in the manual will go a long way.
Because "practice makes perfect", I've tried to figure it out myself. This is what I think is going on.
There are 2 types of variables.
1. Pre-defined (like REMOVE, MAINTENANCE, NEEDSUPGRADE etc.)
2. User defined (like MYVAR1, HELLOWORLD, FAILURE etc.)
There are 2 ways of running an installer:
1. Silent (no user interaction)
2. 'Loud'
If you run silent, you can overwrite pre-defined and user defined variables by adding them to your CMDLINE.
Inside your script, the calls to 'Set Variable' don't have any effect, they will NOT change the value passed via the CMDLINE.
If you run 'loud', you can overwrite pre-defined variables. You can't overwrite user defined variables.
Inside your script, the calls to 'Set Variable' don't have an effect on the pre-defined variables, they will NOT change the value passed via the CMDLINE.
Inside your script, the calls to 'Set Variable' will set the value for the user defined variable, they WILL change the value passed via the CMDLINE.
If you specify no CMDLINE, then the script 'says' it all.
I'd like someone of InstallAware to have quick look and tell me if I'm right
I had a hard time figuring this one out by the help file itself, some clarification in the manual will go a long way.