A KILLPROCESS element specifies that a certain process must be killed before files can be unpacked for a package.

This can only be specified in a PCK block and defines that if the package in which the KILLPROCESS element appears is selected for installation, the specified process is killed. This is useful if a process locks a file that needs to be overwritten and cannot be unlocked automatically by WarpIN. Most importantly, this applies to PM hooks, which usually lock a DLL which becomes part of every PM process on the system and should therefore not be unlocked.

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

Syntax:

<KILLPROCESS
     EXECFILE="execfile"
/>
This is an empty element and must therefore be terminated with a "/" character.

Attributes:

EXECFILE="execfile"
Required. The name of the exectuable to be killed. Specify the file name only, without a path (e.g. "NPSWPS.EXE").

WarpIN will search the process list for an executable with this name. If found, the executable will be killed using DosKillProcess. If not found, nothing happens.

Example:

<PCK INDEX="2" ...>
<KILLPROCESS
    EXECFILE="NPSWPS.EXE" />
...
</PCK>