Page tree
Skip to end of metadata
Go to start of metadata

Description

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.

 

Syntax

Sys_TerminateApplication(sName, sProcess, iTimeOut) As Boolean

 

Parameters

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

 

Example

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

Scripting Guidelines

 

Related functions

Sys_ExistProcess

  • No labels