An EXECUTE element specifies an external program to be executed for post-install setup. This will execute a program after a package has been installed. This might be useful if you need to have additional configuration performed which is not supported by WarpIN keywords directly.

This can only be specified in a PCK block and defines that if the package in which the EXECUTE element appears is selected for installation, the specified executable will be run.

This element is optional, but can appear more than once per PCK block. If several EXECUTE elements appear, they are processed in the order in which they are specified.

Syntax:

<EXECUTE
    EXECFILE="execfile"
    [PARAMETERS="params"]
    [CONDITION="{ALWAYS|CONFIGSYS|REGISTERCLASS|CREATEOBJECT}"]
/>
This is an empty element and must therefore be terminated with a "/" character.

Attributes:

EXECFILE="execfile"
Required. The full path of the executable which is to be run. If the executable is on the PATH, the full path can be ommitted.

execfile will be started in a separate session using "CMD.EXE /C execfile params" so that you can also start a REXX script. This attribute gets processed after all files have been unpacked, so you can specify a program here which is part of the package that was just unpacked. This supports macro resolution.

PARAMETERS="params"
Optional. Parameters to the executable.
CONDITION="{ALWAYS|CONFIGSYS|REGISTERCLASS|CREATEOBJECT}"
Optional. Specifies the additional condition on which the the executable will be started if the package is selected. According to this setting, the respective checkboxes on the "Configure" page will be set (see the PAGE element for more on that). If the user disables the corresponding checkbox, the program does not get called.