# Sys_TerminateApplication

> The function can be used to stop an application in a user friendly manner before an installation is started.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/system-functions/sys-terminateapplication/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### 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**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Sys_ExistProcess](/capainstaller/vb-scripting-library/system-functions/sys-existprocess/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
