HOME B Using GnuPG with other e-mail programs Top D Transfer from other programsC Automatic installation of Gpg4win Contents German

C Automatic installation of Gpg4win

This chapter looks at automated installations (without user dialogs).

In some cases, such as for software shared systems, it is necessary that the installation of Gpg4win works without interaction using dialogs. However, in order to still define all installation settings in advance, Gpg4win supports the configuration of the installation path and other options on the command line as well as a control file.

The installation path can be indicated with the option /D=<PFAD>, which must be submitted as the last option on the command line. The file name (here: gpg4win.exe) may vary depending on the version. It does make a difference whether you use capital or small letters when entering information in the command line. If required, access rights (e.g. read and write) may also be configured in the installation folder. An example:
gpg4win.exe /D=D:\Programme\Gpg4win

Using the option /S, the installation runs "silently", hence without any dialogs. If no other parameters are set, all default settings will be adopted.

Gpg4win also supports a so-called control file. You can use the option /C=<INIFILE> to enter a control file (name usually ends in .ini).

Another example:
gpg4win.exe /S /C=C:\TEMP\gpg4win.ini

This .ini file should contain exactly one section [gpg4win]. It is where various settings can be made, including absolute path information for the configuration files to be installed. Relative paths, hence those that are dependent on the current working directory, cannot be entered here. Absolute paths contain the complete path including the drive name. Usually settings must be entered if the default settings should not be used. Exceptions to this rule are documented in the example on the next page.

This is an example of the contents in a control file which displays all authorized key words:

  ; Installation settings. Leave out or leave empty for  
  ; Default settings
  inst_gpgol = true
  inst_gpgex = true
  inst_kleopatra = true
  inst_gpa = true
  inst_claws_mail = false
  inst_compendium = true

  ; The locations at which linkages are to be prepared.
  inst_start_menu = true
  inst_desktop = false
  inst_quick_launch_bar = false

  ; In contrast to the other options, this option overwrites
  ; the user's settings in the installation assistant.
  inst_start_menu_folder = Gpg4win

  ; Standard configuration files.
  gpg.conf = D:\config\gpg-site.conf
  gpg-agent.conf = D:\config\gpg-agent-site.conf
  trustlist.txt = D:\config\trustlist-site.txt
  dirmngr.conf = D:\config\dirmngr-site.conf
  dirmngr_ldapserver.conf = D:\config\dirmngr_ldapserver-site.conf
  scdaemon.conf = D:\config\scdaemon-site.txt
  gpa.conf = D:\config\gpa-site.conf

A corresponding request for automatic installation with a control file gpg4win.ini and an installation path D:\Programme\Gpg4win could look as follows:
gpg4win.exe /S /C=C:\TEMP\gpg4win.ini /D=D:\Programme\Gpg4win

© 31. August 2010, v3.0.0-beta1 (last minor changes from 21. September 2010)
The Gpg4win Compendium is filed under the GNU Free Documentation License v1.2.

HOME B Using GnuPG with other e-mail programs Top D Transfer from other programsC Automatic installation of Gpg4win Contents German