Automated Application Deployment

KB Home   |   Automated Application Deployment

This article discusses automating the deployment and installation of the PaperCut application server on multiple servers. It is intended to be read by administrators will be installed automatically on multiple independent servers (e.g. administrators of state or district-wide networks). This article is not applicable to most installations where PaperCut installed once on an organization’s network.

For information about automating the client deployment using methods such as zero-install, please consult the application manual. There is also a section about automating a secondary print server installation.

PaperCut has been deployed on a state-wide and district-wide basis in a number of regions. Some of these deployments have involved a progressive or simultaneous roll-out across thousands of sites and networks. PaperCut provides a number of automated and pre-configured install mechanisms to help maintain a common and consistent server environment. This includes:

  • Installer command-line options to define install paths, install options, and automatically trigger installation without the need for an interactive setup.exe wizard.
  • The ability to automatically install the license during the install process.
  • A mechanism to automatically pre-populate the configuration wizard with various defaults such as costs, user import settings, etc.

Installer Command-Line Options

The following batch file will automatically start the PaperCut NG installer installing into C:\Applications


    REM Installing PaperCut
    pcng-setup.exe /TASKS="full" /SILENT /DIR="c:\Applications" 
    REM Installation complete.  
    REM Open browser to http://localhost:9191/ to complete configuration.

Some other commandline switches include:

When a setup is very silent this installation progress window is not displayed (runs 100% in the background). Use this instead of /SILENT.
Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button.
Define the default install location. Leave this off to install into the system’s default Program Files folder.
Don’t install the desktop icon.

License Install

If the supplied digitally signed license file is renamed to application.license and placed in the same directory as the pcng-setup.exe installer program, the file will be detected and automatically installed. This is useful as it avoids the need to manually install the license after initial configuration. If a license is not supplied, the software will be installed in 40-day trial mode and can be licensed later.

Default Configuration

After PaperCut NG is installed for the first time (this does not apply to upgrades) and the browser is opened for the first time on port 9191, the system will enter the initial configuration wizard. The configuration wizard can be pre-populated avoiding the need to complete the full wizard and/or help guide the user in selecting the correct options that match your given SOE.

To pre-populate the setup wizard, create a plain text file called in the same directory as the pcng-setup.exe installer program. Use the following file format to define the defaults:


   # The default admin password. This password will be one-way encrypted and then stored
   # in the [app-path]\server\ during the installation process.

   # The type of your organization. Set to one of the following:
   #    Educational
   #    Commercial
   #    Professional

   # Set to Y if the print control module should be enabled.

   # Set to Y if the internet control module should be enabled.

   # The default color page cost defined initially on all printers.
   #    Set if the print control module is enabled.

   # The default grayscale page cost defined initially on all printers.
   #    Set if the print control module is enabled.

   # The default internet cost per Mb.
   #    Set if the Internet control module is enabled.

   # The default internet time cost.
   #    Set if the Internet control module is enabled.

   # The default internet time interval in seconds.
   #    Set if the Internet control module is enabled.

   # The starting credit assigned to all users.

   # Set to Y if all users should be initially restricted.

   # Define the user import/sync source.  Options include:
   #   WIN_AD   = Windows Active Directory
   #   WIN_STD  = Windows Standard
   #   UNIX_PAM = Unix Standard
   #   MAC_PAM  = Mac Standard

   # Set to Y if users should be imported from a group rather than
   #    the whole domain (default).

   # By default, the User/Group Sync Source displays all groups in the domain.
   # If the user source is WIN_AD, this option may be modified to only list groups
   # from a particular organization unit. 
   # e.g: myorganization.local/Import OU/Sub Import OU

   # The name of the import group.  Set only if the import-from-group
   #    option is selected.

   # If the user source type is WIN_AD, this option may be used to
   #    define multiple domains as user sources.  This value should be
   #    a semicolon (;) separated list of domains.  e.g.

   # Set to Y if the configuration wizard will be displayed at the last screen
   #    ready for the user/admin to press the Finish button.
   #    Set to N if you'd like the user to review the suggestions.

   # Set to Y if the Back/Previous button should be disabled.  This
   #    will prevent the installer from being able to changing the 
   #    defaults in the configuration wizard.  This should be used in
   #    conjunction with the jump-to-verify-page option.

Please feel free to contact our development team if you have any questions, comments or require further configuration options.

Categories: Implementation, Deployment

keywords: silent install, push install, automatic


Share your findings and experience with other PaperCut users. Feel free to add comments and suggestions about this Knowledge Base article. Please don't use this for support requests.

Article last modified on June 25, 2015, at 10:56 PM
Printable View   |   Article History   |   Edit Article