HOW TO: Install PGP Command Line on Windows

Did this article resolve your issue?

Thank you for your feedback!

Provide feedback on this article

Print Article
Products
Related Articles
Subscribe to this Article
Manage your Subscriptions
Search Again

Situation

Solution

1 Close all Windows applications.
2 Download the installer application, PGPCommandLine101Win.zip, to a
known location on your system.
3 Unzip the file PGPCommandLine101Win.zip. You will get the following
file: PGPCommandLine101Win.msi.
4 Double click on PGPCommandLine101Win.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:\Documents and Settings\<user>\My Documents\PGP\
Application data is stored in the directory:
C:\Documents and Settings\<user>\Application Data\PGP
Corporation\PGP
Locations may be different for the different Windows versions.
Changing the Home Directory on Windows
The home directory is where PGP Command Line stores its keyring files. If a
different PGP product has already created this directory, PGP Command Line
will also use it (thus, PGP Command Line can automatically use existing PGP
keys).
PGP Command Line data files, such as keys, are stored in the home directory:
C:\Documents and Settings\<user>\My Documents\PGP\
PGP Command Line application files, such as the configuration file
PGPprefs.xml, are stored in:
C:\Documents and Settings\<user>\Application Data\PGP
Corporation\PGP\
If you want the home directory changed on a permanent basis, you need to
create the PGP_HOME_DIR environment variable and specify the path of the
desired home directory.
􀀗 To create the PGP_HOME_DIR environment variable on a Windows
system:
1 Click Start, select Settings, select Control Panel, and then select
System.
The System Properties dialog appears.
2 Select the Advanced tab, then click Environment Variables.
The Environment Variables screen appears.
3 In the User Variables section, click New.
The New User Variable dialog appears.
4 In the Variable name field, enter PGP_HOME_DIR. In the Variable value
field, enter the path of the home directory you want to use. For example:
C:\PGP\PGPhomedir\
5 Click OK.
The Environment Variables screen reappears. PGP_HOME_DIR appears in
the list of user variables.
Uninstalling on Windows
􀀗To remove PGP Command Line from a Windows system:
1 Navigate to the Add or Remove Programs Control Panel.
2 Select PGP Command Line from the list of installed programs.
3 Click Remove, then follow the on-screen instructions.
PGP Command Line is uninstalled.
Using a License Number
If you have a license number and a working Internet connection, you can license
your copy of PGP Command Line.
Use --license-authorize to license PGP Command Line.
The following options are required:
􀂃 --license-name <Name>
Where <Name> is your name or a descriptive name.
--license-organization <Org> Where <Org> is the name of your
company.
--license-number <Number> Where <Number> is a valid license
number.
The following option is not required but is recommended:
􀂃 --license-email <EmailAddress>
Where <EmailAddress> is a valid email address, generally the email
address of the PGP Command Line administrator.
Before deciding not to enter a license email, be sure to refer to License
Recovery (on page 26). Not entering a license email when you first license your
copy of PGP Command Line negates the license recovery feature for your PGP
Command Line license. If you decide not to enter a license email, you will see a
warning message but your license will authorize.
For example:
pgp --license-authorize --license-name "Alice Cameron"
--license-organization "Example Corporation"
--license-number "aaaaa-bbbbb-ccccc-ddddd-eeeee-fff"
--license-email "acameron@example.com"
(When entering this text, it all goes on a single line.)


Feedback