Permalink
74d52bb Oct 7, 2017
1 contributor

Users who have contributed to this file

24 lines (17 sloc) 818 Bytes
@echo off
SET PATH=C:\Windows\System32;%PATH%
ECHO .. Writting to Chrome Registry
ECHO .. Key: HKCU\Software\Google\Chrome\NativeMessagingHosts\com.add0n.node
REG ADD "HKCU\Software\Google\Chrome\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%LocalAPPData%\com.add0n.node\manifest-chrome.json" /f
ECHO .. Writting to Firefox Registry
ECHO .. Key: HKCU\SOFTWARE\Mozilla\NativeMessagingHosts\com.add0n.node
FOR %%f in ("%LocalAPPData%") do SET SHORT_PATH=%%~sf
REG ADD "HKCU\SOFTWARE\Mozilla\NativeMessagingHosts\com.add0n.node" /ve /t REG_SZ /d "%SHORT_PATH%\com.add0n.node\manifest-firefox.json" /f
pushd "%~dp0"
CD app
IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
..\node\x64\node.exe install.js "%LocalAPPData%"
) ELSE (
..\node\x86\node.exe install.js "%LocalAPPData%"
)
PAUSE