2016-02-26 04:53:44 +00:00
|
|
|
@echo off
|
2016-03-29 20:35:06 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2016-02-26 04:53:44 +00:00
|
|
|
if NOT ["%errorlevel%"]==["0"] (
|
2016-03-29 20:35:06 +00:00
|
|
|
echo FAILED. You probably just need to run the script with administrator privileges.
|
2016-02-26 04:53:44 +00:00
|
|
|
) else (
|
|
|
|
echo Success!
|
2016-03-29 20:35:06 +00:00
|
|
|
setx QMK QMK > nul
|
2016-02-26 04:53:44 +00:00
|
|
|
)
|
2016-03-29 20:35:06 +00:00
|
|
|
|
|
|
|
echo.
|
|
|
|
pause
|