Skip to content

Sys_WaitForProcess

Waits until a specified process has terminated, or the maximum number of seconds has been exceeded. The function checks every iIntervalSec seconds.

If the process isn’t running when you call the function, the function returns True immediately.

Sys_WaitForProcess(sProcessExeName, iMaxWaitSec, iIntervalSec) As Boolean

File name of the process, for example setup.exe

Maximum number of seconds to wait. Must be equal to or larger than iIntervalSec.

Number of seconds between each process-check

The function returns False if the process is still running after iMaxWaitSec seconds, or if iMaxWaitSec is smaller than iIntervalSec.

If bStatus Then bStatus = Sys_WaitForProcess("CapaInstaller.exe", 25, 5)

Scripting Guidelines

Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_ExistProcess Sys_CompareProcessOwner Constants Package Property Variables