Skip to main content

Wrapping packages

Edition:REST APIs are enabled with AdminStudio Enterprise Edition.

When you send this request, it converts a Windows Installer (.msi) or installation package (.exe) to a wrapped package file (.ps1/.exe).

Request TypeDescription
APIhttp://localhost:8086/catalog/ASWrapPackage/?PackageId=37&OutputLocation=C:\\Program Files (x86)\AdminStudio Shared\WrappedPackages\V4&WrapType=Ps1&CustomScriptName=Zimbra.ps1 
MethodPOST
ParametersList all parameters in the following format:
PackageId= (Required) Specify the PackageID of the package.
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= Select either: .ps1 or.exe.
CustomScriptName= (Optional) Specify the customized name for PS1.
Connection InfoProvides the connection information of the package as mentioned in Setting Up Connection to Run REST APIs 

Response

  • Example

      http://localhost:8086/catalog/ASWrapPackage/?
    PackageId=37&OutputLocation=C:\Program Files (x86)\AdminStudio
    Shared\WrappedPackages\V4&WrapType=Ps1&CustomScriptName=Zimbra.ps1
  • Response

      <Package "C:\Program Files (x86)\AdminStudio Shared\WrappedPackages\V4\Zimbra.ps1" was successfully imported>