Skip to content

Command-line options and switches for Paquet Builder

Paquet Builder supports a variety of command-line options to automate tasks such as managing project files and compiling packages. These options allow you to bypass the graphical interface for efficiency or integration into automation workflows.

Tip

For advanced automation, consider using the console command-line compiler, which is specifically designed for such use cases.

What is a switch?

A switch is a command-line parameter, often accompanied by a value, used to configure how Paquet Builder runs. Switches are specified with a forward slash /.

Example:

/c is a switch for compilation.

Handling spaces in file or folder paths:

  • Use quotation marks (") for paths with spaces:
    /log:"C:\Output Folder\Log.rtf"
  • Do not use quotes if the path has no spaces:
    /log:C:\OutputFolder\Log.rtf

Command-line options for managing and compiling projects

You can specify project files when launching Paquet Builder from the command line. For instance:

PBUILDER.EXE "C:\Projects\MyProject.pbpx"

With this command, Paquet Builder opens the project file. Pressing the Compile button creates the package.

When a command-line switch is included, the splash screen is hidden, and a taskbar window displays progress.

Supported switches

Switch Description
/c Forces Paquet Builder to compile the specified project or directive file.
/q Exits Paquet Builder after compilation, regardless of success or failure (error messages are displayed).
/s Enables non-interactive mode, suppressing progress dialogs (errors still prompt interaction). For true silent mode, use the console compiler.
/log:"path" Saves the compilation log to an RTF file at the specified path.
/outfolder:"path" Overrides the output directory for the compiled package.
/outfname:"name" Specifies a custom filename for the compiled package.
/exetype:N Defines the bitness of the package: N=0 for 32-bit, N=1 for 64-bit.
/arcfile:"path" Changes the path of the external 7z archive file.
/filelistupt Forces a live update of all file lists and components before compilation.

Examples

Here are common usage examples combining switches for various tasks:

Compile the project silently and exit:

PBUILDER.EXE "C:\Projects\MyProject.pbpx" /c /q /s

Change the output directory and save the log:

PBUILDER.EXE "C:\Projects\TestProject.pbpx" /c /log:"C:\Logs\BuildLog.rtf" /outfolder:"C:\Output"

Change package bitness to 64-bit, refresh file lists, and compile silently:

PBUILDER.EXE "C:\Projects\TestProject.pbpx" /exetype:1 /c /q /s /filelistupt

Note

For more control over project parameters without using the graphical interface, consider using directives.

Exit codes for Paquet Builder