Sys_KillProcess
Description
Section titled “Description”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.
Syntax
Section titled “Syntax”Sys_KillProcess(sProcessExeName) As Boolean
Parameters
Section titled “Parameters”sProcessExeName (String)
Section titled “sProcessExeName (String)”File name of the process, for example notepad.exe, or a process ID
Return value
Section titled “Return value”The function returns False if a process with the name or ID is still running after the function has tried to end it.
Example
Section titled “Example”If bStatus Then bStatus = Sys_KillProcess("CapaInstaller.exe")Related functions
Section titled “Related functions”Sys_WaitForProcess Sys_Sleep Sys_GetProcessOwner Sys_ExistProcess Sys_CompareProcessOwner Constants Package Property Variables