Installing PGP Command Line on Windows
search cancel

Installing PGP Command Line on Windows

book

Article ID: 180191

calendar_today

Updated On:

Products

PGP Command Line PGP Encryption Suite PGP Key Management Server PGP Key Mgmt Client Access and CLI API PGP SDK Desktop Email Encryption Drive Encryption Encryption Management Server Endpoint Encryption File Share Encryption Gateway Email Encryption

Issue/Introduction

This article details how to install PGP Command Line on Windows systems.

Resolution

 

Installing PGP Command Line on Windows

To install PGP Command Line onto a Windows system:

  1. Close all Windows applications.

  2. Download the installer application, PGPCommandLine105Win.zip, to a known location on your system.

  3. Unzip the file PGPCommandLine105Win.zip. You will get the following file:
    PGPCommandLine105Win.msi.

  4. Double click on PGPCommandLine105Win.msi.

  5. Follow the on-screen instructions.

  6. If prompted, restart your machine. A restart is needed only if other PGP products are also installed on the same machine.

The Windows PGP Command Line application, pgp.exe, is installed into:
C:\Program Files\PGP Corporation\PGP Command Line\

After you run PGP Command Line for the first time, its home directory will be created automatically in the user's home directory:
C:\Users\user-profile\Documents

Application data is stored in the directory:
C:\Users\user-profile\Documents

Locations may be different for the different Windows versions.

 

How to install to a different drive

To redirect the application binaries to another drive (such as D:\), execute the installer via the command line using the TARGETDIR or INSTALLDIR property (depending on your specific installer package version):

1. Open a Command Prompt as Administrator.

2. Run the msiexec command specifying your desired path:cmd

msiexec /i "path_to_pgp_installer.msi" APPLICATIONFOLDER="D:\PGPCommandLine\" /qn

Use code with caution.

(Note: If APPLICATIONFOLDER doesn't apply to your specific version, substitute it with INSTALLDIR="D:\PGPCommandLine\").

Critical Post-Installation Steps

Even if you install the application (pgp.exe) to another drive, Windows will still default to storing user configuration files, temporary data, and your cryptographic keyrings on the C:\ drive (inside C:\Users\<user>\Documents\PGP\ or %appdata%).

To move absolutely everything away from the C:\ drive, you must configure the following system environment variable:

• PGP_HOME_DIR: Create this system environment variable and set its value to your preferred path on the alternative drive (e.g., D:\PGP_Home\).
• Result: This forces PGP to look for and save your public (pubring.pkr) and private (secring.skr) keyrings on your secondary drive.

PGP Encryption Desktop and PGP Command Line Note:
It is not possible to install PGP Command Line and PGP Encryption Desktop on the same machine because both use the same PGP SDK.
Even if the versions are different, the SDK architecture is the same, so only one can be installed on the same machine at the same time.