<executable>
- mark file as executable and optionally execute it
...
- <os> - restrict parsing depending on the target operating system, see the OS Restriction element
- <args>
Pass one or more arguments with nested <arg> tags (one<arg>
tag per argument) to the executable
Attributes: value - the argument value
Example:
<args><arg value="-version"/></args>
Slashes get special handling (see attributetargetfile
of tag<parsable>
.)
Code Block | ||||
---|---|---|---|---|
| ||||
<pack name="core" required="yes"> ... <file targetdir="$INSTALL_PATH" src="projectNotification.bat" /> <executable targetfile="$INSTALL_PATH/projectNotification.bat" type="bin" stage="postinstall" failure ="warn" keep="true" > <os family="windows" /> <args> <arg value="-version"/> </args> </executable> ... </pack> |
Executing Multiple Files
One or more <fileset>
tags can be used to specify multiple files executable at once. The <fileset>
which can be used here does not have all of the attributes and nested tags of a Pack FileSet. Only the attributes targetdir
, includes
and excludes
and the children <include>
and <exclude>
are allowed. The children <include>
and <exclude>
only can have the attribute name
.
...