瀏覽代碼

added update-registry scripts

Gildas 5 年之前
父節點
當前提交
13181fb098
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      companion/win/chrome/update-registry.bat
  2. 3 0
      companion/win/firefox/update-registry.bat

+ 2 - 0
companion/win/chrome/update-registry.bat

@@ -0,0 +1,2 @@
+@echo off
+reg add "HKLM\Google\Chrome\NativeMessagingHosts\singlefile_companion" /ve /t REG_SZ /d "%~dp0\singlefile_companion.json" /f

+ 3 - 0
companion/win/firefox/update-registry.bat

@@ -0,0 +1,3 @@
+@echo off
+reg add "HKCU\Software\Mozilla\NativeMessagingHosts\singlefile_companion" /ve /t REG_SZ /d "%~dp0\singlefile_companion.json" /f
+reg add "HKLM\Software\Mozilla\NativeMessagingHosts\singlefile_companion" /ve /t REG_SZ /d "%~dp0\singlefile_companion.json" /f