How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

HOWTO: Build a Setup from the Command Line

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • HOWTO: Build a Setup from the Command Line

    HOWTO: Build a Setup from the Command Line

    HOWTO: Build a Setup from the Command Line

    Document ID: IR01001
    The information in this article applies to:
    • Setup Factory 5.0.1.1 or Later

    SUMMARY

    This article describes how to create a setup from the command line using Setup Factory 5.0. By building a setup in this manner the build process does not require user interaction and can be accomplished as part of a batch process. Please note that the information in this document only applies to Setup Factory version 5.0.1.1 and later. Earlier versions do not support this feature.

    DISCUSSION

    Implementation
    The usual way to build a setup.exe from Setup Factory 5.0 is to start Setup Factory, open your project file (*.sf5) and then select Project | Build from the menu. However, there may be times that you want to have a setup build without going through Setup Factory's interface.

    In order to build a setup in this manner, you must have the project file ready to go ahead of time. This means that you will still have to use Setup Factory's interface to design your project and save your project file in the usual manner.

    The format for building a setup from the command line is as follows (text in square brackets "[]" is optional):

    Path and filename of Setup Factory 5.0 program [/M] /B[ath and filename of output file] Project filename

    The first part is the path and filename of the Setup Factory program. The Setup Factory 5.0 program is always called "Builder.exe" and is located in "C:\Program Files\Setup Factory 5.0" by default.

    The /M argument is optional and tells Setup Factory to minimize the interface while it is building the setup.

    The /B argument tells Setup Factory to perform the silent, command line build. Without this argument, the Setup Factory interface will open in the usual manner. You can optionally add a colon and the output path and filename of the setup file if you would like. If you do not include the colon and path, the setup.exe will be built to the path and filename that were specified last time you built the project through the interface. It is generally a good idea to specify the output path on the command line. If you do use this method, the project will always be built as one large Setup.exe file.

    The final command line argument is the path and filename of the project file that should be loaded and built.

    Here is a sample command line to build a project:

    "C:\Program Files\Setup Factory 5.0\Builder.exe" /B:"C:\Output\Setup.exe" "C:\Projects\My Project.sf5"

    Return Values
    Building from the command line will not display any errors during the build process. If an error occurs (for example, a file is missing) the builder will quit and return a 1 as its exit code. If the builder returns a 0 it means that the build was successful. If you encounter an error the best way to troubleshoot it is to open Setup Factory and build the project through the interface.

    Output Media
    When performing a command line build you should always build to a hard drive. You should not build to removable media such as floppies or Zip disks. The reason for this is that if you build to a removable disk, you will be prompted to insert the disks during the build process which will have the undesirable effect of requiring user interaction.

    More Information
    If your questions about performing a command line build have not been answered in this document, please email us at [email protected]

    KEYWORDS: command line


    Last reviewed: November 6, 2002
    Copyright 2002 Indigo Rose Corporation. All rights reserved.
Working...
X