summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert2016-03-29 16:38:31 -0400
committerJack Humbert2016-03-29 16:38:31 -0400
commit26513b497b8bae5160389c0beac2d45cbb29c50f (patch)
treed2b2ecb96aff656094b2113f83632e3131000a75
parent49bde5b5c1049589d5b02406a036c3868ddf4512 (diff)
parent8f1ea16ad5e34446bad63bf2357432f256c4298a (diff)
Merge pull request #223 from NoahAndrews/patch-3
Fix #198
-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 49fb00e14..6957dbc3f 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