summaryrefslogtreecommitdiff
path: root/util/add-paths.bat
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-04-16 09:32:40 +1000
committerGitHub <noreply@github.com>2020-04-16 00:32:40 +0100
commit5a45627e17d8ed914b5cd2ac5c50d349c88d7d6b (patch)
tree32d8cb27fcb0c8670b523e2953ba74a9937615f6 /util/add-paths.bat
parent17d0f6338e093f0f000b6a5cd2382d88ccbf1b79 (diff)
Remove old setup scripts (#8811)
Diffstat (limited to 'util/add-paths.bat')
-rw-r--r--util/add-paths.bat30
1 files changed, 0 insertions, 30 deletions
diff --git a/util/add-paths.bat b/util/add-paths.bat
deleted file mode 100644
index ab3d91da17..0000000000
--- a/util/add-paths.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
-@ECHO off
-
-SET NEWPATH1="C:\MinGW\msys\1.0\bin"
-SET NEWPATH2="C:\MinGW\bin"
-
-CD %~dp0
-
-ECHO. > add-paths.log
-
-CALL :AddPath %NEWPATH1%
-CALL :AddPath %NEWPATH2%
-
-EXIT /b
-
-:AddPath <pathToAdd>
-ECHO %PATH% | FINDSTR /C:"%~1" > nul
-IF ERRORLEVEL 1 (
- REG add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v PATH /t REG_SZ /d "%PATH%;%~1" >> add-paths-detail.log
- IF ERRORLEVEL 0 (
- ECHO Adding %1 . . . Success! >> add-paths.log
- SET "PATH=%PATH%;%~1"
- COPY NUL UPDATE
- ) ELSE (
- ECHO Adding %1 . . . FAILED. Run this script with administrator privileges. >> add-paths.log
- )
-) ELSE (
- ECHO Skipping %1 - Already in PATH >> add-paths.log
- )
-EXIT /b \ No newline at end of file