# CMS_InstallAdvertisedPackage

> Installs an advertised package.

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

#### Description

Installs an advertised package

### Syntax

CMS_InstallAdvertisedPackage(sPackage, sVersion) As Boolean

See [CMS_AddPackageToUnit](/capainstaller/vb-scripting-library/cms-functions/cms-addpackagetounit/)

### Parameters

#### sPackage (String)

Name of package

#### sVersion (String)

Version of package

### Return value

Boolean, TRUE if function completed successfully.

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_InstallAdvertisedPackage("CapaInstaller", "v1.0") 
```

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

### Related functions

[CMS_GetAdvertisedPackages](/capainstaller/vb-scripting-library/cms-functions/cms-getadvertisedpackages/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
