CMS\_AddPackageToUnit
Description
Section titled “Description”Adds the specified package to the unit on which the script is being executed
Syntax
Section titled “Syntax”:vb: CMS_AddPackageToUnit(sPackage, sVersion) as Boolean
:ps: [bool]CMS_AddPackageToUnit -package <string> -version <string>
Parameters
Section titled “Parameters”sPackage (String)
Package name
sVersion (String)
Package version
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_AddPackageToUnit("CapaInstaller", "v1.0"):ps: PowerShell
Section titled “:ps: 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("And..", "It's not even the old version 1.8 :) ")}Related functions
Section titled “Related functions”