Sys_TerminateApplication
Description
Section titled “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
Section titled “Syntax”Sys_TerminateApplication(sName, sProcess, iTimeOut) As Boolean
Parameters
Section titled “Parameters”sName (String)
Section titled “sName (String)”Application name. Free text that will be merged into the message boxed displayed
sProcess (String)
Section titled “sProcess (String)”Process name to search for
iTimeOut (Integer)
Section titled “iTimeOut (Integer)”Timeout in minutes
Example
Section titled “Example”If bStatus Then bStatus = Sys_TerminateApplication("CapaInstaller", "CapaInstaller.exe", 1)