Invoke-ASWrapPackage
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
Use the Invoke-ASWrapPackage to convert a Windows Installer (.msi) or installation package (.exe) to a wrapped package file (.ps1/.exe).
Example
Invoke-ASWrapPackage -PackageId 25 -OutputLocation "C:\Users\ssahoo\Desktop" -WrapType Exe
Invoke-ASWrapPackage -PackageID 30 -WrapType Ps1 -PowershellScriptfile "Paint4.4.ps1"
Parameters
The Invoke-ASWrapPackage has the following parameters:
Parameter |
Description |
PackageID |
(Required) Enter the package ID to identify the package you want to wrap. |
OutputLocation |
(Optional) If you want to change the default packaging location, specified on the Wrap Options tab of the Application Catalog Options dialog box, use this parameter. |
WrapType |
Either add .ps1 or .exe |
PowerShellScriptfile |
(Optional) If you want to change the default custom scrip file name to name the wrapped PowerShell Script File. This option is available only when wrap type is chooses as .ps1 If no values are specified, then the script file name will created by the default script file name “Deploy-Application.ps1”. |
Return Values
A success or failure message is returned.