# MSI_GetPackageStatus

> Returns the status for the specified MSI-package.

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

### Description

Returns the status for the specified MSI-package

### Syntax

MSI_GetPackageStatus(sMSIFile) As Boolean

### Parameters

#### sMSIFile (String)

Path and filename of the MSI-package

### Return value

Result will be stored in gsValue. MSI Status

### Example

**VBScript**

```vb
If bStatus Then bStatus = MSI_GetPackageStatus("C:\CapaInstaller.msi")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)
```

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

### Related functions

[MSI_InstallPackage](/capainstaller/vb-scripting-library/msi-functions/msi-installpackage/) [MSI_UnInstallByFile](/capainstaller/vb-scripting-library/msi-functions/msi-uninstallbyfile/) [MSI_IsPackageInstalled](/capainstaller/vb-scripting-library/msi-functions/msi-ispackageinstalled/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
