This article details how to install PGP Command Line on Windows systems.
Installing PGP Command Line on Windows
To install PGP Command Line onto a Windows system:
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.