1 # inst-gpa.nsi - Installer snippet for gpa. -*- 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}/gpa-${gpg4win_pkg_gpa_version}
30 File "${gpg4win_pkg_gpa}"
32 File ${prefix}/bin/gpa.exe
34 SetOutPath "$INSTDIR\pub"
35 File /oname=gpa.exe "${BUILD_DIR}/gpgwrap.exe"
37 SetOutPath "$INSTDIR\share\locale\de\LC_MESSAGES"
38 File ${prefix}/share/locale/de/LC_MESSAGES/gpa.mo
40 SetOutPath "$INSTDIR\share\gpa"
41 File ${prefix}/share/gpa/gpa_tips.en
42 File ${prefix}/share/gpa/gpa_tips.de
43 File ${prefix}/share/gpa/gpa_logo.ppm
44 File ${prefix}/share/gpa/gpa.png
46 # If requested, install the configuration files.
47 ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
48 StrCmp $0 "" no_config_gpa_files
49 CreateDirectory "$0\gnupg"
51 g4wihelp::config_fetch "gpa.conf"
52 StrCmp $R0 "" no_config_gpa_conf
53 CopyFiles $R0 "$0\gnupg\gpa.conf"
62 LangString DESC_SEC_gpa ${LANG_ENGLISH} \
63 "GNU Privacy Assistant"
65 LangString DESC_Menu_gpa ${LANG_ENGLISH} \
66 "Run the GNU Privacy Assistant key management tool. \
67 This is an alternative to the WinPT key management tool."