1 # inst-gnupg.nsi - Installer snippet for gnupg. -*- coding: latin-1; -*-
2 # Copyright (C) 2005 g10 Code GmbH
4 # This file is part of GPG4Win.
6 # GPG4Win is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # GPG4Win is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
24 !define prefix ${ipdir}/gnupg-${gpg4win_pkg_gnupg_version}
27 Section "GnuPG" SEC_gnupg
32 File "${gpg4win_pkg_gnupg}"
34 File "${prefix}/bin/gpg.exe"
35 File "${prefix}/bin/gpgsplit.exe"
36 File "${prefix}/bin/gpgv.exe"
38 # As a special exception, these programs are not kept in
39 # libexec/gnupg, where they belong. Please see the comment in
40 # gnupg/g10/keyserver.c::keyserver_spawn() for an explanation.
41 File "${prefix}/libexec/gnupg/gpgkeys_finger.exe"
42 File "${prefix}/libexec/gnupg/gpgkeys_hkp.exe"
43 File "${prefix}/libexec/gnupg/gpgkeys_curl.exe"
44 File "${prefix}/libexec/gnupg/gpgkeys_ldap.exe"
46 SetOutPath "$INSTDIR\pub"
47 File /oname=gpg.exe "${BUILD_DIR}/gpgwrap.exe"
48 File /oname=gpgv.exe "${BUILD_DIR}/gpgwrap.exe"
49 File /oname=gpgsplit.exe "${BUILD_DIR}/gpgwrap.exe"
51 SetOutPath "$INSTDIR\share\gnupg"
52 File "${prefix}/share/gnupg/options.skel"
53 File "${prefix}/share/gnupg/FAQ"
54 File "${prefix}/share/gnupg/faq.html"
55 File "${prefix}/share/man/man1/gpg.man"
56 File "${prefix}/share/man/man1/gpgv.man"
57 File "${prefix}/share/man/man7/gnupg.man"
59 # Install the language files for gpg. Note that the PO files are
60 # required to be UTF-8 encoded and that the post-install macro in
61 # Makefile.am needs to build them.
62 SetOutPath "$INSTDIR\gnupg.nls"
63 File "${prefix}/share/gnupg/de.mo"
65 # If requested, install the configured gpg.conf.
66 Var /GLOBAL ConfigGPGConf
67 g4wihelp::config_fetch "gpg.conf"
68 StrCpy $ConfigGPGConf $R0
69 StrCmp $ConfigGPGConf "" no_config_gpg_conf
70 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
71 StrCmp $0 "" no_config_gpg_conf
72 CreateDirectory "$0\gnupg"
73 CopyFiles $ConfigGPGConf "$0\gnupg\gpg.conf"
77 WriteRegStr HKLM "Software\GNU\GnuPG" "Install Directory" $INSTDIR
79 # This old key is required for GPGee. Please do not use in new
81 WriteRegStr HKLM "Software\GNU\GnuPG" "gpgProgram" "$INSTDIR\gpg.exe"
83 # Add the public directory to the PATH
91 LangString DESC_SEC_gnupg ${LANG_ENGLISH} \