CMS\_SetPackageStatusToInstalled
Description
Section titled “Description”Will set the status of a package to Installed
Syntax
Section titled “Syntax”:vb: CMS_SetPackageStatusToInstalled(sPackage, sVersion) as Boolean
:ps: [bool]CMS_SetPackageStatusToInstalled -package <string> -version <string>
Parameters
Section titled “Parameters”sPackage (String)
Name of package
sVersion (String)
Version of package
Return value
Section titled “Return value”:vb: Boolean, TRUE if function completed successfully.
:ps: Boolean, TRUE if function completed successfully.
Example
Section titled “Example”:vb: VBScript
Section titled “:vb: VBScript”If bStatus Then bStatus = CMS_SetPackageStatusToInstalled("CapaInstaller", "v1.0"):ps: PowerShell
Section titled “:ps: PowerShell”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")}Related functions
Section titled “Related functions”CMS_SetPackageStatusToNotCompliant