Difference between revisions of "GPG4win"
(→2.x Package: Added Issues section) |
(Various additions and amendments) |
||
Line 1: | Line 1: | ||
− | This is a silent installer and uninstaller for GPG4Win. | + | This is a silent installer and uninstaller for GPG4Win (http://www.gpg4win.org/), a packaged version of GNU Privacy Guard (http://www.gnupg.org/) for Windows. |
− | |||
== 2.x Package == | == 2.x Package == | ||
Line 28: | Line 27: | ||
===Issues=== | ===Issues=== | ||
* Installation of 2.1.0 gives "Error: StartService: ec=1-56" and never fully completes, thus repeated on every re-run of WPKG | * 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 | + | * The 2.1.0 installer reboots straight after installation, whether it's the GUI installer doing so without prompting, or the silent installer |
+ | See a question about this on the GPG4Win forum at http://wald.intevation.org/forum/forum.php?thread_id=984&forum_id=21 | ||
+ | You may want to fall back to a GNU Privacy Guard 1.4.11 binary for Windows from http://www.gnupg.org/. | ||
==Installer Options== | ==Installer Options== | ||
From the 'README file for Gpg4win': | From the 'README file for Gpg4win': | ||
− | The default installation path can be | + | The default installation path can be specified with the /D=PATH |
option, which must be last on the command line. The installer | option, which must be last on the command line. The installer | ||
supports the options /S for unattended installation, and the option | supports the options /S for unattended installation, and the option | ||
Line 40: | Line 41: | ||
and absolute file paths to configuration files that should be | and absolute file paths to configuration files that should be | ||
preinstalled. Most options just set a different default value. | preinstalled. Most options just set a different default value. | ||
− | + | Exceptions are documented below. Here is an example file which shows | |
all possible keys: | all possible keys: | ||
Revision as of 10:42, 17 October 2011
This is a silent installer and uninstaller for GPG4Win (http://www.gpg4win.org/), a packaged version of GNU Privacy Guard (http://www.gnupg.org/) for Windows.
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 installer
See a question about this on the GPG4Win forum at http://wald.intevation.org/forum/forum.php?thread_id=984&forum_id=21 You may want to fall back to a GNU Privacy Guard 1.4.11 binary for Windows from http://www.gnupg.org/.
Installer Options
From the 'README file for Gpg4win':
The default installation path can be specified 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. Exceptions 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.