# Appl_SetMSIError

> Returns MSI error description. For further information of MSI error codes, please refer to the Windows Installer SDK.

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

#### Description

Returns MSI error description. For further information of MSI error codes, please refer to the Windows Installer SDK.

### Syntax

Appl_SetMSIError(iErrorLevel) as Boolean

### Parameters

#### iErrorLevel (Integer)

ErrorLevel value

### Return value

Boolean, TRUE if function completed successfully Return Type

### Example

**VBScript**

```vb
If bStatus Then bStatus=Appl_SetMSIError(giErrorLevel)

```

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

### Related functions

[Application functions](/capainstaller/vb-scripting-library/application-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
