# Set Package Property

> Sets the priority property of a package.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/set-package-property/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Sets the package property

## Syntax

```
SetPackagePriority(ByVal name As String, ByVal version As String, ByVal Type As String, ByVal priority As Integer) As Boolean

```

## Parameters

***PackageName (String)***

The name of the package.

***PackageVersion (String)***

The package Version.

***PackageType (String)***

The package type;

- 1 (Computer)
- 2 (User)

***Priority(Integer)***

The priorityof the Package, Default is 500

## Return value

Boolean. The function returns true or false

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.SetPackagePriority("Winrar","v3.0","1",501) 
```
