'If Variable Not Defined' how does it work?
Posted: Wed Nov 03, 2010 6:41 am
I'm trying to pass several properties to the installer.
Inside the script I'd like to check if the properties were actually set.
I've got code like this:
Now the 'compiler' complains: Variable not defined: WRITEREGISTRYKEYS.
Well duh!
What good is having a check for variable defintion if you can't use it. What am I missing here?
I can create a MSI with a set of default properties via the GPO, but if an the deployment via AD requires one of them to change, I need to be sure that the other defaults are kept (some how). The properties get lost if you don't specify them, so how to go about that?
Inside the script I'd like to check if the properties were actually set.
I've got code like this:
Code: Select all
If Variable WRITEREGISTRYKEYS not is Defined
Comment: Do we need to write registry keys? Default is no
Set Variable WRITEREGISTRYKEYS to FALSE
end
Well duh!
What good is having a check for variable defintion if you can't use it. What am I missing here?
I can create a MSI with a set of default properties via the GPO, but if an the deployment via AD requires one of them to change, I need to be sure that the other defaults are kept (some how). The properties get lost if you don't specify them, so how to go about that?