www.icetips.com  Icetips Utilities Documentation 11/30/2010    

SetupBuilder Class: AddCompilerVariable

Previous  Top  Next  


Prototype: (String pVariable, String pValue, Byte pQuoteValue=0)

 

pVariableThe name of the Compiler variable to update during compile.

 

pValueThe value to pass to SetupBuilder for this variable.

 

pQuoteValueDetermines if the pValue should be quoted when added to the command line.

 

ReturnsThe 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:

BuildCommandLine

CompileSBProject

CompilerVariables

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/addcompilervariable_setupbuild.htm