Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: start of the debug code made to support old Windows versions.
- @echo off
- :LAUNCHER
- if defined ProgramFiles(x86) (set arch=64) else set arch=86
- for /f "tokens=4-7delims=[.] " %%a in ('ver') do if /i "%%a"=="Version" (set "Windows_Version=%%b.%%c") else set "Windows_Version=%%a.%%b"
- :: ANSICON WILL BE INSTALLED IN WINDOWS 2000, Vista, 7, 8, 8.1
- if not "!Windows_Version!"=="10.0" if not defined ANSICON_VER call :INSTALL_ANSICON "%~f0"
- :: ANSICON WILL NOT BE INSTALLED
- :CONTINUE_LAUNCHER
- REM CONTINUE YOUR CODE HERE
- pause
- :: ANSICON INSTALLATION IS HERE ON THE END OF THE SCRIPT TO AVOID ANY ERRORS
- :INSTALL_ANSICON
- for %%a in (ansicon.exe ANSI32.dll) do if not exist "Ansicon\x!arch!\%%a" call :CURL "Ansicon\x!arch!\%%a" "`git_raw_main`/Ansicon/x!arch!/%%a" || (call :ERROR_INTERNET & exit)
- if "!arch!"=="64" if not exist "Ansicon\x64\ANSI64.dll" call :CURL "Ansicon\x!arch!\ANSI64.dll" "`git_raw_main`/Ansicon/x!arch!/ANSI64.dll" || (call :ERROR_INTERNET & exit)
- pushd "Ansicon\x!arch!"
- ansicon.exe -i
- popd
- start "" "%~f1"
- exit
- :: End of the debug code made to support old Windows versions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement