Skip to content

Sys_WaitForProcessToExist

Waits until a process with the specified name is running. The function checks every iIntervalSec seconds, for up to iMaxWaitSec seconds. The first check is made after iIntervalSec seconds.

Sys_WaitForProcessToExist(sProcessExeName, iMaxWaitSec, iIntervalSec) As Boolean

File name of the process, for example CapaInstaller.exe

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

Number of seconds between each check

If process does not exist after iMaxWaitSec the function will return false. The function also returns False if iMaxWaitSec is smaller than iIntervalSec.

gbValue is True if the process is running. giValue contains the number of seconds the function waited.

If bStatus Then bStatus = Sys_WaitForProcessToExist("CapaInstaller.exe", 30, 5)

Scripting Guidelines

Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner Constants Package Property Variables