Skip to content

Commit

Permalink
Merge pull request coreybutler#354 from tomisawk/fix-install-cmd
Browse files Browse the repository at this point in the history
Fix install.cmd
  • Loading branch information
coreybutler authored Aug 12, 2018
2 parents fd6e4e3 + 238992a commit da507b5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bin/install.cmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
@echo off
set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: "
setx /M NVM_HOME "%NVM_PATH%"
setx /M NVM_SYMLINK "C:\Program Files\nodejs"
setx /M PATH "%PATH%;%NVM_HOME%;%NVM_SYMLINK%"
set NVM_HOME=%NVM_PATH%
set NVM_SYMLINK=C:\Program Files\nodejs
setx /M NVM_HOME "%NVM_HOME%"
setx /M NVM_SYMLINK "%NVM_SYMLINK%"

for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v Path 2^>nul') do (
setx /M PATH "%%B;%%NVM_HOME%%;%%NVM_SYMLINK%%"
)

if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
set SYS_ARCH=64
Expand Down

0 comments on commit da507b5

Please sign in to comment.