@ECHO OFF Title Xioner19 CFG Installer SET projectname=Xioner19-CFG ECHO.&&ECHO. ECHO github.com/Xioner19/%projectname% ECHO.&&ECHO. REG QUERY "HKEY_CURRENT_USER\Software\Valve\Steam">NUL 2>NUL IF ERRORLEVEL 1 GOTO NOREG FOR /F "tokens=2* skip=2" %%a IN ('REG QUERY "HKEY_CURRENT_USER\Software\Valve\Steam" /v "SteamPath"') DO SET csgo=%%b :CHECKDIR SET "csgo=%csgo%/steamapps/common/counter-strike global offensive/" IF NOT EXIST "%csgo%/game/" GOTO NODIR ECHO Found game directory: ECHO %csgo% ECHO. IF EXIST "%csgo%/game/csgo/cfg/autoexec.cfg" ( ECHO Updating files... ) ELSE ( ECHO Installing... ) ECHO. CD /d %csgo% ECHO =============================================================================== curl -L -o xioner19.bat.tar.gz https://codeload.github.com/Xioner19/%projectname%/tar.gz/refs/heads/main :DOWNLOADING TASKLIST /fi "IMAGENAME eq curl.exe" >NUL IF ERRORLEVEL 1 TIMEOUT /t 1 & GOTO DOWNLOADING tar -xzf xioner19.bat.tar.gz --strip=1 %projectname%-main/game/csgo ECHO =============================================================================== ECHO. ECHO Success! ECHO. DEL xioner19.bat.tar.gz ECHO Press any key to exit... PAUSE >NUL GOTO:EOF :NODIR ECHO. ECHO ERROR: Could not find game directory at: ECHO %csgo% ECHO. ECHO Please enter your CS2 Steam library directory: (E.g. 'D:/Steam Games') SET /p csgo=^>: ECHO  GOTO CHECKDIR :NOREG ECHO. ECHO ERROR: Could not find Steam installation! ECHO. ECHO Press any key to exit... PAUSE >NUL GOTO:EOF