Set Package Priority
Description
Section titled “Description”Sets the priority of a package.
Syntax
Section titled “Syntax”SetPackagePriority(ByVal name As String, ByVal version As String, ByVal Type As String, ByVal priority As Integer) As BooleanParameters
Section titled “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 priority of the package. The default priority of a package is 500.
Return value
Section titled “Return value”Boolean. The function returns true if the priority is set, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.SetPackagePriority("Winrar","v3.0","1",501)