Build Actions

The Build Actions dialog box appears when you click Build actions ... on the Package attributes pane. It allows you to specify external actions that are performed during each project build.

External build actions

External build actions are specified as command lines, much as you would enter commands in a command prompt window. At build time, InstallMate writes the build action commands to a temporary batch file, starts a command processor to execute the batch file, waits until the command processor has finished executing the batch file, then resumes the build process.

Some hints and tips:

Local and global actions

The Build Actions dialog box contains two sets of build actions: local and global.

Note: local (per-package) actions must be specified for each package separately, by selecting the package in the package list on the Project overview page, then clicking Build actions... Global actions are shared across all packages, regardless of the currently selected package.

The order in which build actions are performed during a project build is as follows:

Global: Before any packages
   Package 1: a. Before preflight
              b. (preflight check)
              c. Before each build
              d. (target build)
              e. After each build
              ...repeat a-e for each target of this package...
   Package 2: a. Before preflight
              b. (preflight check)
              c. Before each build
              d. (target build)
              e. After each build
              ...repeat a-e for each target of this package...
    ...repeat per-package actions for any further packages...
Global: After all packages

Dialog tabs and options

All actions should be entered as command lines, similar to the command lines that you would use in a command prompt window. See External build actions above for details.

Tip: use the > button to the right of the main edit field to show a popup menu that inserts commonly used symbolic variables into the command line.

Tab Description
Before any packages (Global action) Enter the commands that you want performed at the very start of the build process.
Preflight package (Local action) Enter the commands that you want performed before each preflight check of the currently selected package.
Prebuild package (Local action) Enter the commands that you want performed before each build of the currently selected package.
Postbuild package (Local action) Enter the commands that you want performed after each successful build of the currently selected package.
After all packages (Global action) Enter the commands that you want performed at the very end of the build process.