Skip to content

Sys_KillProcess

Ends all running processes with the specified name, or the process with the specified process ID. The name isn’t case-sensitive.

After it has ended the processes, the function waits up to 20 seconds for them to exit. If the process isn’t running, the function writes this to the package log and returns True.

Sys_KillProcess(sProcessExeName) As Boolean

File name of the process, for example notepad.exe, or a process ID

The function returns False if a process with the name or ID is still running after the function has tried to end it.

If bStatus Then bStatus = Sys_KillProcess("CapaInstaller.exe")

Scripting Guidelines

Sys_WaitForProcess Sys_Sleep Sys_GetProcessOwner Sys_ExistProcess Sys_CompareProcessOwner Constants Package Property Variables