Skip to main content

Invoke-ASWrapPackage

AdminStudio 2025 | 29.0 | AdminStudio PowerShell Cmdlets

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

note

This cmdlet also supports wrapping of MSIX packages to a wrapped package file (.ps1). Make sure that the MSIX package is signed with a valid certificate, if not an error message appears.

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:

ParameterDescription
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.
WrapTypeEither 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.