Skip to content

Set Package Priority

Sets the priority of a package.

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 priority of the package. The default priority of a package is 500.

Boolean. The function returns true if the priority is set, otherwise false.

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