Setup Command Line Variable - what is the default?
Posted: Tue Aug 28, 2007 4:03 pm
Hello,
I am trying to add a feature to my setup that will allow users to bypass my pre-requisites by using a command line switch when running the setup.
I added this:
if Variable SkipNativeClient not Equals true
Include Script: checksqlncli9
end
I want my client to be able to run
setup.exe SkipNativeClient=true
If they just run setup.exe without any parameters I want the pre-requisite to install.
My questions is how do I set the default value for SkipNativeClient. If I try to compile this I get an error because SkipNativeClient is not defined.
If I add a set variable line will that be overwritten by the command line value? If that is true where does that happen - ever where the variable is set? Just the first time it is set?
The Pre-Defined variables indicate they are automatically initialized when the setup begins. Can I do that with my variables?
I see version 6.6 added a "Is Defined" option to the if statement. I'm not sure if that would solve my problem or not. I am using version 6.0 and am not ready to update yet.
Thanks,
Mark
I am trying to add a feature to my setup that will allow users to bypass my pre-requisites by using a command line switch when running the setup.
I added this:
if Variable SkipNativeClient not Equals true
Include Script: checksqlncli9
end
I want my client to be able to run
setup.exe SkipNativeClient=true
If they just run setup.exe without any parameters I want the pre-requisite to install.
My questions is how do I set the default value for SkipNativeClient. If I try to compile this I get an error because SkipNativeClient is not defined.
If I add a set variable line will that be overwritten by the command line value? If that is true where does that happen - ever where the variable is set? Just the first time it is set?
The Pre-Defined variables indicate they are automatically initialized when the setup begins. Can I do that with my variables?
I see version 6.6 added a "Is Defined" option to the if statement. I'm not sure if that would solve my problem or not. I am using version 6.0 and am not ready to update yet.
Thanks,
Mark