]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix #198
authorNoah Andrews <NoahAndrews@users.noreply.github.com>
Tue, 29 Mar 2016 20:35:06 +0000 (16:35 -0400)
committerNoah Andrews <NoahAndrews@users.noreply.github.com>
Tue, 29 Mar 2016 20:35:06 +0000 (16:35 -0400)
1-setup-path-win.bat

index 49fb00e149ac26aff74756939b4012521dc9411b..6957dbc3f49a00c7cd68bb9d659ccb0d9d349693 100644 (file)
@@ -1,9 +1,14 @@
 @echo off
-setx /M path "%PATH%;C:\MinGW\bin;C:\MinGW\msys\1.0\bin" > nul 2>&1
+
+reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v Path /t REG_SZ /d "%path%;C:\MinGW\bin;C:\MinGW\msys\1.0\bin" > nul
+echo.
+
 if NOT ["%errorlevel%"]==["0"] (
-       echo FAILED. Rerun with administrator privileges.
-       pause
+       echo FAILED. You probably just need to run the script with administrator privileges.
 ) else (
        echo Success!
-       pause
+       setx QMK QMK > nul
 )
+
+echo.
+pause