Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(blue star) CMS_IsPackageScheduleEnabled(sPackage, sVersion) As Boolean

(blue star) [bool]CMS_IsPackageScheduleEnabled -package <string> -version <string>

Properties

sPackage (String)

...

Version of the package

Return value

Result (blue star) Boolean, TRUE if function completed successfully. The result will be stored in gbValue. If the package is not found function will return false

(blue star) Boolean, $true if the package has a schedule and it is enabled. Otherwise $false

Example

(blue star) VBScript
Code Block
languagevb
If bStatus Then xStatus = CMS_IsPackageScheduleEnabled("CapaInstaller", "v1.0")
If bStatus Then
  xStatus = Job_WriteLog("Custom","gbValue: " & gbValue, bStatus, True)
End If
(blue star) PowerShell
Code Block
languagepowershell
if (CMS_IsPackageScheduleEnabled "CapaInstaller"  "v1.0") {
  $cs.Job_WriteLog("Enabled","Package (CapaInstaller) has an enabled schedule")
}

Scripting Guidelines

Related functions

...