LP#1731922 - Tell Windows installer about Firefox Hatch.
authorChris Sharp <csharp@georgialibraries.org>
Mon, 30 Apr 2018 19:30:56 +0000 (15:30 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 30 Apr 2018 19:30:56 +0000 (15:30 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
installer/windows/hatch.nsi

index 68fed3e..0868d73 100644 (file)
@@ -209,6 +209,16 @@ section "install"
     ; Connect Hatch to Chrome and install the Hatch extension from the Chrome Web Store
     WriteRegStr HKLM "SOFTWARE\Google\Chrome\NativeMessagingHosts\org.evergreen_ils.hatch" "" "$INSTDIR\extension\host\org.evergreen_ils.hatch.json"
     WriteRegStr HKLM "Software\Google\Chrome\Extensions\${EXTENSIONID}" "update_url" "${EXTENSION_UPDATEURL}"
+
+    ${If} ${RunningX64}
+        SetRegView 64
+    ${EndIf}
+
+    WriteRegStr HKLM "SOFTWARE\Mozilla\NativeMessagingHosts\org.evergreen_ils.hatch" "" "$INSTDIR\extension\host\org.evergreen_ils.hatch.json"
+    
+    ${If} ${RunningX64}
+        SetRegView 32
+    ${EndIf}
 SectionEnd