|
Previous Top Next |
Prototype: | (String pBaseCommandLine),String |
pBaseCommandLine | Contains the path and name of the SetupBuilder executable and the path and the name of the SetupBuilder project to compile. |
Returns | Returns the full command line to execute |
This method builds up a command line to compile the project. The basic command line that is passed to it contains the SetupBuilder executable and the project to compile, like:
ShortPath(SELF.SBExecutable) & ' /C "' & ShortPath(SELF.SBProjectToCompile) & '"'
Optionally compiler variables can be added to the commandline by using the AddCompilerVariable method. A destination folder can also be specified, but it is optional. If no destination folder is specified, it is constructed by using the project file path and name in the same manner as SetupBuilder does it. This method is called automatically by the CompileSBProject.
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 this method and if the command line exceeds the maximum allowed by the operating system, the CompileSBProject terminates and returns -2 to the calling code.
See also: