Skip to content

Sys\_TerminateApplication

The function can be used to stop an application in a user friendly manner before an installation is started. If the process is found in memory the end user is asked to stop the application. When the application is stopped the function complete. If the application is not stopped within the timeout period the function CMS_JobRetryLater is invoked. The rest of the installation will then be postponed.

Sys_TerminateApplication(sName, sProcess, iTimeOut) As Boolean

sName (String)

Application name. Free text that will be merged into the message boxed displayed

sProcess (String)

Process name to search for

iTimeOut (Integer)

Timeout in minutes

VBScript

If bStatus Then bStatus = Sys_TerminateApplication("CapaInstaller", "CapaInstaller.exe", 1)

Scripting Guidelines

Sys_ExistProcess