Advertisement
RealBUZZARD

Avoid ANSICON Windows 10 installation...

Jul 28th, 2020 (edited)
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.09 KB | None | 0 0
  1. :: start of the debug code made to support old Windows versions.
  2. @echo off
  3.  
  4. :LAUNCHER
  5. if defined ProgramFiles(x86) (set arch=64) else set arch=86
  6. for /f "tokens=4-7delims=[.] " %%a in ('ver') do if /i "%%a"=="Version" (set "Windows_Version=%%b.%%c") else set "Windows_Version=%%a.%%b"
  7. :: ANSICON WILL BE INSTALLED IN WINDOWS 2000, Vista, 7, 8, 8.1
  8. if not "!Windows_Version!"=="10.0" if not defined ANSICON_VER call :INSTALL_ANSICON "%~f0"
  9. :: ANSICON WILL NOT BE INSTALLED
  10. :CONTINUE_LAUNCHER
  11. REM CONTINUE YOUR CODE HERE
  12. pause
  13.  
  14. :: ANSICON INSTALLATION IS HERE ON THE END OF THE SCRIPT TO AVOID ANY ERRORS
  15. :INSTALL_ANSICON
  16. 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)
  17. 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)
  18. pushd "Ansicon\x!arch!"
  19. ansicon.exe -i
  20. popd
  21. start "" "%~f1"
  22. exit
  23. :: End of the debug code made to support old Windows versions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement