HOWTO: Build a Setup from the Command LineDocument ID: IR02014
The information in this article applies to:
- Setup Factory 6.0
This article explains how to build a setup from the command line.
Building a setup from the command line or batch file is an easy way to perform daily builds, or to quickly build the most up-to-date version of your application. Setup Factory even supports the passing of an INI file containing design-time constants that your project will use.
Using this process you could build your commercial and evaluation setups using a batch file. The batch file would have to perform two unattended builds: one that passes the "commercial" INI file, and another that passes the "evaluation" INI file.
The following command line options are supported by the Setup Factory design environment:
Unattended Build (/B)
This performs an unattended build of a project. This allows you to build a setup executable "automatically" from a batch file.
The syntax for the /B option is:
Replace "Unattended-build_INI_file" with the path and filename of an INI file containing the unattended build settings you want Setup Factory to use. (Be sure to put quotes around the entire argument if the path or filename includes any spaces.)
Note: The full path to the project file should always be passed as the first command line parameter.
SUF60Design.exe D:\foo.sf6 "/B:\release build.ini"
The unattended-build INI file allows you to pass values into your project in the form of design-time constants. You can define as many design-time constants as you want in the INI file, with each constant on a separate line beneath the [Constants] section.
When you use the /B option, the specified project file is loaded into Setup Factory, the constants described in the specified unattended-build INI file are set, and the setup executable is generated-all without any interaction.
The SUF60Design.exe process returns an exit code of 1 if an error occurred during the unattended build, or 0 if the build was successful. You can use this return code to make your batch files respond to the success or failure of the Setup Factory build process.
Tip: The unattended build option is usually used in conjunction with the Minimize (/M) option.
This minimizes the Setup Factory design environment when used with the unattended build (/B) option.
SUF60Design.exe D:\xyz.sf6 /B:\autobuild.ini /M
For more information please see the following topics in the Setup Factory 6.0 Help:
KEYWORDS: Setup Factory, Command line, Unattended build
Last reviewed: September 27, 2002
Copyright © 2002 Indigo Rose Corporation. All rights reserved.