Difference between revisions of "GPG4win"
(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] | ||
− | == | + | == 2.x Package == |
<source lang="xml"> | <source lang="xml"> | ||
− | |||
− | |||
<package | <package | ||
id="GPG4Win" | id="GPG4Win" | ||
name="GPG4Win" | name="GPG4Win" | ||
− | revision=" | + | revision="2" |
priority="35" | priority="35" | ||
reboot="true"> | reboot="true"> | ||
− | <check type="uninstall" condition=" | + | <check type="uninstall" condition="versiongreaterorequal" path="Gpg4win" value="2.1.0" /> |
− | <install cmd='%SOFTWARE%\GPG4Win\gpg4win-2. | + | <install cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/> |
− | <upgrade cmd='%SOFTWARE%\GPG4Win\gpg4win-2. | + | <upgrade cmd='%SOFTWARE%\GPG4Win\gpg4win-2.1.0.exe /S'/> |
− | <remove cmd='% | + | <remove cmd='%PROGRAMFILES%\GNU\GnuPG\gpg4win-uninstall.exe /S'/> |
</package> | </package> | ||
− | |||
</source> | </source> | ||
− | + | ||
− | + | ==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] | ||
− | ; | + | ; Installer settings. Do not define or leave empty for defaults. |
− | + | ||
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 | ||
− | ; | + | ; 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 | ||
− | ; | + | ; 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 | inst_start_menu_folder = Gpg4win | ||
− | ; | + | ; 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> | ||
− | + | 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. | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 09:59, 25 August 2011
This is a silent installer and uninstaller for GPG4Win.
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.