Commands
Custom commands are configured in this section. If this section is missing, no custom commands are executed.
Example
<commands>
<command name="Ping of localhost" fileName="ping" arguments="127.0.0.1"
executionTime="Copy" timeout="10">
<successExitCodes> ... </successExitCodes>
</command>
</commands>
Elements
<command>
Attribute | Type | Description | Required | Version |
---|---|---|---|---|
name | string | Display name of the command | X | ≥1.7.0 |
fileName | string | Name of the file to execute. Variables can be used in this attribute. |
X | ≥1.7.0 |
arguments | string | Command arguments for the executed file. Variables can be used in this attribute. |
- | ≥1.7.0 |
executionTime | string | The time of execution:
|
X | ≥1.7.0 |
timeout | int | Execution timeout in seconds. Default timeout is 30 seconds. | - | ≥1.7.0 |
Other Elements
Element | Description | Required | Version |
---|---|---|---|
successExitCode | Exit codes on successful execution | - | ≥1.7.0 |
Variables
In the filename attributes and argument tags are now variables allowed. The following placeholders can be used:
Internal App Variables
Variable | Example |
---|---|
%Manufacturer% | z.B. Adobe |
%ProductName% | z.B. Reader |
%Version% z.B. | 10.1.3 |
%PackageVersion% | z.B. 001 |
%SourcePath% | z.B. \server1\development\Adobe\Adobe_Reader_10.1.3_001 |
%DestinationPath% | z.B. \server1\deployment\Adobe\Adobe_Reader_10.1.3_001 |
Windows Environment Variables
These variables are resolved to the one defined in the operating system.
%Temp%
%ProgramFiles%
%ProgramFiles(x86)%
%WinDir%
%ComputerName%
%Date%
%Random%
%Time%