2007-08-13 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Mon, 13 Aug 2007 12:01:19 +0000 (12:01 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Mon, 13 Aug 2007 12:01:19 +0000 (12:01 +0000)
* src/inst-gnupg2.nsi: Install config files.
* src/inst-dirmngr.nsi: Likewise.
* src/inst-gpa.nsi: Likewise.

ChangeLog
src/inst-dirmngr.nsi
src/inst-gnupg2.nsi
src/inst-gpa.nsi

index 3ea42c5..6c40ff5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-08-13  Marcus Brinkmann  <marcus@g10code.de>
 
+       * src/inst-gnupg2.nsi: Install config files.
+       * src/inst-dirmngr.nsi: Likewise.
+       * src/inst-gpa.nsi: Likewise.
+
        * src/g4wihelp.c (config_init, config_fetch): New functions.
        * src/inst-gnupg.nsi: Install gpg.conf AppData if configured.
 
index e91b2ef..cf63cae 100644 (file)
@@ -65,5 +65,21 @@ dirmngr_created:
   g4wihelp::service_start "DirMngr" "1" "\"$INSTDIR\dirmngr.exe\""
 dirmngr_restarted:
 
+
+  # If requested, install the configuration files.
+  ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
+  StrCmp $0 "" no_config_dirmngr_files
+  SetOutPath "$0\gnupg"
+
+  g4wihelp::config_fetch "dirmngr.conf"
+  StrCmp $R0 "" no_config_dirmngr_conf
+    CopyFiles $R0 "$0\gnupg\dirmngr.conf"
+  no_config_dirmngr_conf:
+
+  g4wihelp::config_fetch "dirmngr_ldapservers.conf"
+  StrCmp $R0 "" no_config_dirmngr_ldapservers_conf
+    CopyFiles $R0 "$0\gnupg\dirmngr_ldapservers.conf"
+  no_config_dirmngr_ldapservers_conf:
+
 !endif
 SectionEnd
index 5d7f73a..8dc0020 100644 (file)
@@ -64,6 +64,32 @@ Section /o "GnuPG2" SEC_gnupg2
 #  SetOutPath "$INSTDIR\gnupg2.nls"
 #  File "${prefix}/share/gnupg2/de.mo"
 
+  # If requested, install the configuration files.
+  ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
+  StrCmp $0 "" no_config_gpg_conf_files
+  SetOutPath "$0\gnupg"
+
+  g4wihelp::config_fetch "gpg.conf"
+  StrCmp $R0 "" no_config_gpg2_conf
+    CopyFiles $R0 "$0\gnupg\gpg.conf"
+  no_config_gpg2_conf:
+
+  g4wihelp::config_fetch "gpg-agent.conf"
+  StrCmp $R0 "" no_config_gpg_agent_conf
+    CopyFiles $R0 "$0\gnupg\gpg-agent.conf"
+  no_config_gpg_agent_conf:
+
+  g4wihelp::config_fetch "scdaemon.conf"
+  StrCmp $R0 "" no_config_scdaemon_conf
+    CopyFiles $R0 "$0\gnupg\scdaemon.conf"
+  no_config_scdaemon_conf:
+
+  g4wihelp::config_fetch "trustlist.txt"
+  StrCmp $R0 "" no_config_trustlist_txt
+    CopyFiles $R0 "$0\gnupg\trustlist.txt"
+  no_config_trustlist_txt:
+
+  no_config_gpg_conf_files:
 !endif
 SectionEnd
 
index eef4264..9a8484f 100644 (file)
@@ -43,6 +43,16 @@ Section "GPA" SEC_gpa
   File ${prefix}/share/gpa/gpa_logo.ppm
   File ${prefix}/share/gpa/gpa.png
 
+  # If requested, install the configuration files.
+  ReadRegStr $0 HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" AppData
+  StrCmp $0 "" no_config_gpa_files
+  SetOutPath "$0\gnupg"
+
+  g4wihelp::config_fetch "gpa.conf"
+  StrCmp $R0 "" no_config_gpa_conf
+    CopyFiles $R0 "$0\gnupg\gpa.conf"
+  no_config_gpa_conf:
+
 !endif
 SectionEnd