Command Line Options

 

AutoPlay Media Studio 9 design and runtime executable supports command line options that can be passed, thus providing developers control over the application and build process.

Tip: The global variable _CommandLineArgs can be used to determine what arguments were passed to the application executable.

 

Unattended Build Options

The following command line options are supported by AutoPlay Media Studio's design environment for an unattended build process:

Note: The unattended build returns 0 as a process return code if successful, or non-zero if not. You can use this return code to make your batch files respond to the success or failure of the AutoPlay Media Studio build process. The code signing executable may return additional exit codes in case of errors.

Unattended Build Return Codes

The following unattended build errors may be returned.

0

Build successful.

-1

The root of the C: drive cannot be used as the Output Folder.

-2

The output folder could not be created.

-3

The output folder specified is a file, not a folder.

-4

The executable filename cannot contain the following characters:\r\n \\ : * / ? \" < > |

-5

The executable filename cannot contain spaces when 'Enable AutoPlay Feature' is selected.

-6

The output cannot be empty.

-7

The executable filename cannot be empty.

-8

Codesigning failed. (Please check for possible additional error information provided by the codesigning executable.)

-9

UPX compression failed.

 

Command Line Options

/BUILD

Tells AutoPlay Media Studio to build the project file passed in on the command line or from a batch file. In addition to the project file, one of the following publish options is also required: /EXE or /FOLDER (details below). For example:

"C:\Program Files (x86)\AutoPlay Media Studio 9\AutoPlayDesign.exe" /BUILD "C:\TestProj.autoplay" /EXE:"C:\Output\myfile.exe"

Note: This option is unavailable in the evaluation version of AutoPlay Media Studio. Unattended building is featured only in the commercial release of the product.

/LOG:"log file path"

Specifies a log file to output build status to. If the file exists, the output will be appended to it. If the file does not exist, it will be created. For example:

"C:\Program Files (x86)\AutoPlay Media Studio 9\AutoPlayDesign.exe" /BUILD "C:\TestProj.autoplay" /LOG:"C:\Output\logfile.txt" /EXE:"C:\Output\myfile.exe"

/STDOUT

Makes the build status go to the standard output device.

For example, if AutoPlay Media Studio is run from another product that captures the standard output:

"C:\Program Files (x86)\AutoPlay Media Studio 9\AutoPlayDesign.exe" /BUILD "C:\TestProj.autoplay" /STDOUT /EXE:"C:\Output\myfile.exe"

/EXE:"exe file path"

Publishes the project as a web/email executable.

For example, if AutoPlay Media Studio is run from another product that captures the standard output:

"C:\Program Files (x86)\AutoPlay Media Studio 9\AutoPlayDesign.exe" /BUILD "C:\TestProj.autoplay" /EXE:"C:\Output\myfile.exe"

/FOLDER:"output folder path"

Publishes the project to a folder, from where the files can later be collected by a setup builder, or be copied to removable media.

"C:\Program Files (x86)\AutoPlay Media Studio 9\AutoPlayDesign.exe" /BUILD "C:\TestProj.autoplay" /FOLDER:"C:\Output"