Skip to content

Commit

Permalink
reverting back the install.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-portmen committed Aug 12, 2017
1 parent 7877289 commit 48d7575
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions windows/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

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 "%USERPROFILE%\Local Settings\Application Data\com.add0n.node\manifest-chrome.json" /f
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 ("%USERPROFILE%\Local Settings\Application Data") do SET SHORT_PATH=%%~sf
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 "%USERPROFILE%\Local Settings\Application Data"
..\node\x64\node.exe install.js "%LocalAPPData%"
) ELSE (
..\node\x86\node.exe install.js "%USERPROFILE%\Local Settings\Application Data"
..\node\x86\node.exe install.js "%LocalAPPData%"
)

PAUSE

1 comment on commit 48d7575

@dj-hidem
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 "%USERPROFILE%\Local Settings\Application Data\com.add0n.node\manifest-chrome.json" /f
+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 ("%USERPROFILE%\Local Settings\Application Data") do SET SHORT_PATH=%%~sf
+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 "%USERPROFILE%\Local Settings\Application Data"
  • ..\node\x64\node.exe install.js "%LocalAPPData%"
    ) ELSE (
  • ..\node\x86\node.exe install.js "%USERPROFILE%\Local Settings\Application Data"
  • ..\node\x86\node.exe install.js "%LocalAPPData%"
    )

PAUSE

Please sign in to comment.