# MSI_UnInstallByFile

> Performs a silent uninstall of the specified MSI-package.

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

### Description

Performs a silent uninstall of the specified MSI-package

### Syntax

MSI_UnInstallByFile(sMSIFile) As Boolean

### Parameters

#### sMSIFile (String)

Path and filename of the MSI-package

### Example

**VBScript**

```vb
If bStatus Then bStatus = MSI_UnInstallByFile("C:\CapaInstaller.msi")
```

[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](MSI_IsPackageInstalled.md) [MSI_GetPackageStatus](/capainstaller/vb-scripting-library/msi-functions/msi-getpackagestatus/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
