Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Description

Adds the specified package to the unit on which the script is being executed

Syntax

(blue star) CMS_AddPackageToUnit(sPackage, sVersion) as Boolean

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

Parameters

sPackage (String)

Package name

sVersion (String)

Package version


Return value

(blue star) Boolean, TRUE if function completed successfully.

(blue star) Boolean, TRUE if function completed successfully. 

Example

(blue star) VBScript
If bStatus Then bStatus = CMS_AddPackageToUnit("CapaInstaller", "v1.0")
(blue star) PowerShell
if (CMS_AddPackageToUnit -package 'Il pacchetto perfetto 2.0 IT' -version 'v1.0') {
  $cs.Job_WriteLog("Added", "The Perfect package was added to the unit")
  $cs.Job_WriteLog("Added", "The Perfect package was added to the unit")
}

Scripting Guidelines

Related functions

CMS_RemovePackageFromUnit

  • No labels