Exist package
Description
Verifies if a package exists in specified Point
Syntax
ExistPackage(ByVal name As String, ByVal version As String, ByVal Type As String) As Boolean
Parameters
name (String)
The name of the package.
version (String)
The package Version.
Type (String)
The package type;
- 1 (Computer)Â
- 2 (User)
Return value
Boolean. The function returns True if successful, otherwise false.
ExampleÂ
VBScript
Set oCMS = CreateObject("CapaInstaller.SDK") wscript.echo oCMS.SetDefaultManagementPoint("1") wscript.echo oCMS.ExistPackage("Winrar","v3.0","1")
Â