Skip to content

Start-PSDownloadPackage

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%.

Start-PSDownloadPackage

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.

None. If the download fails, the whole script is terminated via Exit-PSScript 3322.

Terminal window
# From the MAIN section of the script template — shown for reference only:
PreInstall
if ($global:DownloadPackage -and $global:InputObject) { Start-PSDownloadPackage }
Install

Add-PSDll