summaryrefslogtreecommitdiffstats
path: root/1-setup-path-win.bat
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-03-30 00:45:48 -0400
committerJack Humbert <jack.humb@gmail.com>2016-03-30 00:45:48 -0400
commite7377dc24b4aaf97f9c48ef7db78b7b6cbabe748 (patch)
tree7774668076bb8c8d2331028bb540510c078e60be /1-setup-path-win.bat
parentb8ac5095708b5023f5e3e375b22534f8b395741f (diff)
parent4a676746a6d8c9b47956f863ead335e995677c53 (diff)
Merge branch 'master' of https://github.com/jackhumbert/tmk_keyboard
Diffstat (limited to '1-setup-path-win.bat')
-rw-r--r--1-setup-path-win.bat13
1 files changed, 9 insertions, 4 deletions
diff --git a/1-setup-path-win.bat b/1-setup-path-win.bat
index 49fb00e149..6957dbc3f4 100644
--- a/1-setup-path-win.bat
+++ b/1-setup-path-win.bat
@@ -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