[Gpg4win-commits] [git] Gpg4win - branch, master, updated. gpg4win-2.3.1-147-gddaab35

by Andre Heinecke cvs at cvs.gnupg.org
Wed May 4 17:26:03 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG for Windows".

The branch, master has been updated
       via  ddaab35c18f57c5b57517548316aaaf02ccc62e4 (commit)
      from  5b3c85e2730d57d97eff9a70c5c6d9e3729e7fb6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ddaab35c18f57c5b57517548316aaaf02ccc62e4
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Wed May 4 17:24:28 2016 +0200

    Register PGP Content-Types
    
    * src/installer-finish.nsi (SetupExtRegKeys): Add MimeAssociation for
    pgp-keys
    (Section): Add PGP Content Types.
    (Uninstall): Remove keys again.

diff --git a/src/installer-finish.nsi b/src/installer-finish.nsi
index 21cf941..a53cb2f 100644
--- a/src/installer-finish.nsi
+++ b/src/installer-finish.nsi
@@ -107,6 +107,7 @@ Function SetupExtRegKeys
 
   # Mime extensions For PGP this is probably pretty useless
   WriteRegStr HKLM "Software\Gpg4win\$0\Capabilities\MimeAssociations" "application/pgp" "gpg4win.AssocFile.$0.GPG"
+  WriteRegStr HKLM "Software\Gpg4win\$0\Capabilities\MimeAssociations" "application/pgp-keys" "gpg4win.AssocFile.$0.GPG"
   WriteRegStr HKLM "Software\Gpg4win\$0\Capabilities\MimeAssociations" "application/pgp-encrypted" "gpg4win.AssocFile.$0.GPG"
   WriteRegStr HKLM "Software\Gpg4win\$0\Capabilities\MimeAssociations" "application/pgp-signature" "gpg4win.AssocFile.$0.GPG"
   WriteRegStr HKLM "Software\Gpg4win\$0\Capabilities\MimeAssociations" "application/pkcs7-mime" "gpg4win.AssocFile.$0.CMS"
@@ -194,6 +195,11 @@ Section
   WriteRegDWORD     HKLM $MYTMP "NoModify"        "1"
   WriteRegDWORD     HKLM $MYTMP "NoRepair"        "1"
 
+  WriteRegStr HKLM "Software\Classes\MIME\Database\Content Type\application/pgp" "Extension" ".gpg"
+  WriteRegStr HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-signature" "Extension" ".sig"
+  WriteRegStr HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-encrypted" "Extension" ".gpg"
+  WriteRegStr HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-keys" "Extension" ".gpg"
+
   call SetupExtensions
 SectionEnd
 
@@ -239,4 +245,11 @@ Section Uninstall
 
   # Remove Windows Add/Remove Programs support.
   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRETTY_PACKAGE_SHORT}"
+
+  DeleteRegKey HKLM "Software\Classes\MIME\Database\Content Type\application/pgp"
+  DeleteRegKey HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-signature"
+  DeleteRegKey HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-encrypted"
+  DeleteRegKey HKLM "Software\Classes\MIME\Database\Content Type\application/pgp-keys"
+
+
 SectionEnd

-----------------------------------------------------------------------

Summary of changes:
 src/installer-finish.nsi | 13 +++++++++++++
 1 file changed, 13 insertions(+)


hooks/post-receive
-- 
GnuPG for Windows
http://git.gnupg.org



More information about the Gpg4win-commits mailing list