Difference between revisions of "GPG4win"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Bump to version 2.0.4)
(GPG4win: Tidyup; update for 2.1; replaced German language installer options section with English and expanded)
Line 3: Line 3:
 
[http://www.gpg4win.org/ GPG4win Project Homepage]
 
[http://www.gpg4win.org/ GPG4win Project Homepage]
  
== GPG4win ==
+
== 2.x Package ==
  
 
<source lang="xml">
 
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
 
  
<packages>
 
 
   <package
 
   <package
 
     id="GPG4Win"
 
     id="GPG4Win"
 
     name="GPG4Win"
 
     name="GPG4Win"
     revision="2004"
+
     revision="2"
 
     priority="35"
 
     priority="35"
 
     reboot="true">  
 
     reboot="true">  
  
     <check type="uninstall" condition="exists" path="Gpg4win (2.0.4)"/>
+
     <check type="uninstall" condition="versiongreaterorequal" path="Gpg4win" value="2.1.0" />
  
     <install cmd='%SOFTWARE%\GPG4Win\gpg4win-2.0.4.exe /S'/>
+
     <install cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/>
 
   
 
   
     <upgrade cmd='%SOFTWARE%\GPG4Win\gpg4win-2.0.4.exe /S'/>
+
     <upgrade cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/>
  
     <remove cmd='%ProgramFiles%\GNU\GnuPG\gpg4win-uninstall.exe /S'/>
+
     <remove cmd='%PROGRAMFILES%\GNU\GnuPG\gpg4win-uninstall.exe /S'/>
  
 
   </package>
 
   </package>
</packages>
 
 
</source>
 
</source>
  
Ãœber eine Steuerungsdatei lassen sich die Installationseinstellungen vorgeben.
+
 
Der Inhalt der Steuerungsdatei sieht wie folgt aus:
+
==Installer Options==
 +
From the 'README file for Gpg4win':
 +
 
 +
The default installation path can be speficied with the /D=PATH
 +
option, which must be last on the command line.  The installer
 +
supports the options /S for unattended installation, and the option
 +
/C=INIFILE to specify an .ini file which should contain exactly one
 +
section "[gpg4win]".  This section contains various installer settings
 +
and absolute file paths to configuration files that should be
 +
preinstalled.  Most options just set a different default value.
 +
Excetions are documented below. Here is an example file which shows
 +
all possible keys:
  
 
<source lang="ini">
 
<source lang="ini">
 
[gpg4win]
 
[gpg4win]
   ; Installationseinstellungen. Weg- oder leerlassen für
+
   ; Installer settings.  Do not define or leave empty for defaults.
  ; Voreinstellung
+
 
   inst_gpgol = true
 
   inst_gpgol = true
 
   inst_gpgex = true
 
   inst_gpgex = true
Line 43: Line 50:
 
   inst_man_novice_en = true
 
   inst_man_novice_en = true
  
   ; Die Stellen, an denen Verknüpfungen erzeugt werden sollen.
+
   ; Where to install short-cuts.
 
   inst_start_menu = true
 
   inst_start_menu = true
 
   inst_desktop = false
 
   inst_desktop = false
 
   inst_quick_launch_bar = false
 
   inst_quick_launch_bar = false
  
   ; Im Gegensatz zu den anderen Optionen überschreibt diese Option
+
   ; Contrary to other settings in this file, the start menu folder
   ; die Einstellung des Benutzers im Installationsassistenten.
+
   ; setting here will override the user selection at installation
 +
  ; time.
 
   inst_start_menu_folder = Gpg4win
 
   inst_start_menu_folder = Gpg4win
  
   ; Standard-Konfigurationsdateien.
+
   ; Additional configuration files to install.
 
   gpg.conf = D:\config\gpg-site.conf
 
   gpg.conf = D:\config\gpg-site.conf
 
   gpg-agent.conf = D:\config\gpg-agent-site.conf
 
   gpg-agent.conf = D:\config\gpg-agent-site.conf
Line 60: Line 68:
 
   scdaemon.conf = D:\config\scdaemon-site.txt
 
   scdaemon.conf = D:\config\scdaemon-site.txt
 
   gpa.conf = D:\config\gpa-site.conf
 
   gpa.conf = D:\config\gpa-site.conf
 
 
</source>
 
</source>
  
Der Installationsbefehl wäre hierbei entsprechend abzuändern:
+
An example command for unattended installation could look like this:
 +
 
 +
  gpg4win.exe /S /C=C:\TEMP\gpg4win.ini /D=D:\Programme\Gpg4win
  
  gpg4win.exe /S /C=%SOFTWARE%\GPG4Win\gpg4win.ini /D=D:\Programme\Gpg4win
+
For the MSI installer, the above also holds, with the following
 +
changes: Unattended installation is achieved as usual with the /qb-
 +
option to msiexec.  The control file must be called gpg4win.ini and
 +
reside in the system directory (C:\WINDOWS).  It is found
 +
automatically by the installer.  The installation directory can be
 +
specified with an entry for "instdir".  Also, each entry can be given
 +
in uppercase at the command line through INSTDIR=... and
 +
INST_GPA=FALSE etc. (the control file takes precedence, though).  The
 +
default config files as well as start menu directory and optional
 +
installation of short cuts are currently not supported through the MSI
 +
installer.
  
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 09:59, 25 August 2011

This is a silent installer and uninstaller for GPG4Win.

GPG4win Project Homepage

2.x Package

  <package
    id="GPG4Win"
    name="GPG4Win"
    revision="2"
    priority="35"
    reboot="true"> 

    <check type="uninstall" condition="versiongreaterorequal" path="Gpg4win" value="2.1.0" />

    <install cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/>
 
    <upgrade cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/>

    <remove cmd='%PROGRAMFILES%\GNU\GnuPG\gpg4win-uninstall.exe /S'/>

  </package>


Installer Options

From the 'README file for Gpg4win':

The default installation path can be speficied with the /D=PATH option, which must be last on the command line. The installer supports the options /S for unattended installation, and the option /C=INIFILE to specify an .ini file which should contain exactly one section "[gpg4win]". This section contains various installer settings and absolute file paths to configuration files that should be preinstalled. Most options just set a different default value. Excetions are documented below. Here is an example file which shows all possible keys:

[gpg4win]
  ; Installer settings.  Do not define or leave empty for defaults.
  inst_gpgol = true
  inst_gpgex = true
  inst_kleopatra = true
  inst_gpa = true
  inst_claws_mail = false
  inst_compendium_de = true
  inst_man_novice_en = true

  ; Where to install short-cuts.
  inst_start_menu = true
  inst_desktop = false
  inst_quick_launch_bar = false

  ; Contrary to other settings in this file, the start menu folder
  ; setting here will override the user selection at installation
  ; time.
  inst_start_menu_folder = Gpg4win

  ; Additional configuration files to install.
  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

An example command for unattended installation could look like this:

 gpg4win.exe /S /C=C:\TEMP\gpg4win.ini /D=D:\Programme\Gpg4win

For the MSI installer, the above also holds, with the following changes: Unattended installation is achieved as usual with the /qb- option to msiexec. The control file must be called gpg4win.ini and reside in the system directory (C:\WINDOWS). It is found automatically by the installer. The installation directory can be specified with an entry for "instdir". Also, each entry can be given in uppercase at the command line through INSTDIR=... and INST_GPA=FALSE etc. (the control file takes precedence, though). The default config files as well as start menu directory and optional installation of short cuts are currently not supported through the MSI installer.