Register gpgme-browser integration also for 64bit
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 12 Sep 2018 13:09:38 +0000 (15:09 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 12 Sep 2018 13:09:38 +0000 (15:09 +0200)
* src/inst-gpgme-browser.nsi: Register manifest for 64bit.
* src/uninst-gpgme.nsi: Delete it.

src/inst-gpgme-browser.nsi
src/uninst-gpgme.nsi

index 135113f..ab51bfb 100644 (file)
@@ -63,6 +63,11 @@ ${MementoUnselectedSection} "Browser integration" SEC_gpgme_browser
 
   WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json"
   WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json"
+  SetRegView 64
+  WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json"
+  WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json"
+  SetRegView 32
+
 !endif
 
 ${MementoSectionEnd}
index a36bc06..0959c98 100644 (file)
@@ -44,5 +44,11 @@ Section "-un.gpgme"
 
   DeleteRegKey SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson"
   DeleteRegKey SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson"
+
+  SetRegView 64
+  DeleteRegKey SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson"
+  DeleteRegKey SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson"
+  SetRegView 32
+
 !endif
 SectionEnd