Creating Containers with the Auto Packager Command Line

The Auto Packager's command line interface, AutoPackagerCLI.exe, can be used to generate a Container from an XML configuration file.

Included in the root directory of the Auto Packager, a PowerShell script AutoPackagerCLI.ps1 takes command line arguments, generates an XML document called PackagerScript.xml, which is read by  AutoPackagerCLI.exe. 

The PowerShell script AutoPackagerCLI.ps1 is best suited to script automation, and integrating into packaging workflows, for example Citrix AppDNA.


AutoPackagerPath = AutoPackager's install path (optional), defaults to c:\programdata\cloudhouse\packager\
Arguments: Arguments to install the program to be packaged (optional), defaults to /silent
AppName: Container Name (mandatory)
AppDescription: Description for the Container (optional)
AppGuid: Unique ID for the Container (mandatory), defaults to AppName_Container
InstallerPath: Path to the installer for the program that will be installed
PackageFolder: Container output folder (mandatory)
InitialLaunchExecutable: Path to the application's executable that will be launched from the program shortcuts (mandatory)

Command line packaging with AutoPackagerCLI.ps1

By default, the Auto Packager installs into "C:\Documents and Settings\All Users\Application Data\Cloudhouse\Packager" 

  1. Download and extract the attached zip into the default location of the Auto Packager
  2. Open a PowerShell window, and cd into the same location as Auto Packager
  3. $> Set-RemoteExecutionPolicy

    .\AutoPackagerCLI.ps1 -InstallerPath "C:\path\to\application\installer.exe" -PackageFolder "c:\path\to\output\container" -arguments "/force /quiet" -AppName application_name -InitialLaunchExecutable "c:\path\to\program.exe"

Command line packaging with AutoPackagerCLI.exe

By default, the Auto Packager Command Line Interface, installs into "C:\Documents and Settings\All Users\Application Data\Cloudhouse\Packager". The executable generates a Container using the XML configuration file as input

  1. Edit the configuration file C:\Documents and Settings\All Users\Application Data\Cloudhouse\Packager\PackagerScript.xml and specify values for the following XML elements
    1. InstallerPath 
    2. Arguments
    3. AppName
    4. AppGuid
    5. PackageFolder
    6. InitialLaunchExecutable
  2. Ignore all other settings.

Example PackagerScript.xml

<?xml version="1.0"?>
<CommandLinePackagerSettings xmlns:xsi="" xmlns:xsd="">
  <Arguments>/repair /quiet</Arguments>
  <!-- This folder must exist -->
  <AppDescription>App description</AppDescription>
  <!-- Exe to be started by short cut -->
  <!-- 0 = False, 1 = True -->
Was this article helpful?

Can't find what you're looking for?

Contact Support