|
Previous Top Next |
Prototype: | (String pVariable, String pValue, Byte pQuoteValue=0) |
pVariable | The name of the Compiler variable to update during compile. |
pValue | The value to pass to SetupBuilder for this variable. |
pQuoteValue | Determines if the pValue should be quoted when added to the command line. |
Returns | The method does not return a value |
This method is used before compiling a SetupBuilder project. It allows you to pass data to the SetupBuilder compiler that will update the compiler variables in the project with the data in the pValue. This is placed into the CompilerVariables queue and then used in the BuildCommandLine to construct the correct command line to pass to the SetupBuilder compiler.
Please note that the command line length is limited and varies depending on what operating system is in use. There is a basic length checking mechanism built into the BuildCommandLine method and if the command line exceeds the maximum allowed by the operating system, the CompileSBProject terminates and returns -2 to the calling code.
Example:
ITS.AddCompilerVariable('PRODUCTVER','0.95.000',True)
ITS.AddCompilerVariable('EXENAME','TestBuild_0.95.000.EXE',True)
See also: