Skip to content

CMS\_IsPackageLinked

Checks if a given package linked to the computer

:vb: CMS_IsPackageLinked(sPackage, sVersion) As Boolean

:ps: [bool]CMS_IsPackageLinked -package <string> -version <string>

sPackage (String)

Name of the package

sVersion (String)

Version of the package

:vb: Boolean, TRUE if function completed successfully. The result will be stored in gbValue. If the package is not found function will return false

:ps: Boolean, $true if the package is linked. Otherwise $false

If bStatus Then xStatus = CMS_IsPackageLinked("CapaInstaller", "v1.0")
If bStatus Then
xStatus = Job_WriteLog("Custom","gbValue: " & gbValue, bStatus, True)
End If
Terminal window
if (CMS_IsPackageLinked "CapaInstaller" "v1.0") {
$cs.Job_WriteLog("Linked","Package (CapaInstaller) is linked")
}

Scripting Guidelines