Set Package Property

Set Package Property

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
Set oCMS = CreateObject("CapaInstaller.SDK") wscript.echo oCMS.SetDefaultManagementPoint("1") wscript.echo oCMS.SetPackagePriority("Winrar","v3.0","1",501)