Difference between revisions of "GPG4win"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(GPG4win: Tidyup; update for 2.1; replaced German language installer options section with English and expanded)
(2.x Package: Added Issues section)
Line 25: Line 25:
 
</source>
 
</source>
  
 +
 +
===Issues===
 +
* Installation of 2.1.0 gives "Error: StartService: ec=1-56" and never fully completes, thus repeated on every re-run of WPKG
 +
* The 2.1.0 installer reboots straight after installation, whether it's the GUI installer doing so without prompting, or the silent installaer
  
 
==Installer Options==
 
==Installer Options==

Revision as of 10:12, 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>


Issues

  • Installation of 2.1.0 gives "Error: StartService: ec=1-56" and never fully completes, thus repeated on every re-run of WPKG
  • The 2.1.0 installer reboots straight after installation, whether it's the GUI installer doing so without prompting, or the silent installaer

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.