# MSI_AddInstallSource

> Changes the InstallSource for a installed msi package in order to uninstall the package if the original source no longer exists.

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

### Description

Changes the InstallSource for a installed msi package in order to uninstall the package if the original source no longer exists.

This function will return false if the msi package is not installed on the client

### Syntax

MSI_AddInstallSource(sMSIFile) as Boolean

### Parameters

#### sMSIFile (String)

Path to msi package

### Example

**VBScript**

```vb
If bStatus Then bStatus = MSI_AddInstallSource("C:\Temp\CapaInstaller Console.msi")
```

**Read more**

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

### Related functions

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