Start-PSDownloadPackage
Description
Section titled “Description”Triggers the download of the package’s kit folder from CiBaseAgent, then polls the download progress once per second, logging it, until it reaches 100%.
Syntax
Section titled “Syntax”Start-PSDownloadPackage
Parameters
Section titled “Parameters”None. Uses the script-scoped $InputObject, $cs and $AppName variables — it only does anything when $InputObject (the Named Pipe connection to CiBaseAgent, see PowerPack Global Variables) is present.
Return value
Section titled “Return value”None. If the download fails, the whole script is terminated via Exit-PSScript 3322.
Example
Section titled “Example”# From the MAIN section of the script template — shown for reference only:PreInstallif ($global:DownloadPackage -and $global:InputObject) { Start-PSDownloadPackage }Install