Skip to content

Set Package Property

Sets the package property

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

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

Boolean. The function returns true or false

VBScript

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