Skip to content

CMS\_SetPackageStatusToInstalled

Will set the status of a package to Installed

:vb: CMS_SetPackageStatusToInstalled(sPackage, sVersion) as Boolean

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

sPackage (String)

Name of package

sVersion (String)

Version of package

:vb: Boolean, TRUE if function completed successfully.

:ps: Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = CMS_SetPackageStatusToInstalled("CapaInstaller", "v1.0")
if (CMS_SetPackageStatusToInstalled 'Bit Rally 3.44' 'v1.0') {
$cs.Job_WriteLog("Installed", "The status of Bit Rally 3.44 is now set to Installed")
}

Scripting Guidelines

CMS_SetPackageStatusToNotCompliant