4444SET GamePath =
4545FOR /F " tokens=2* skip=2" %%a in ('reg query " HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 671860" /v " InstallLocation" ') do SET GamePath = " %%b "
4646:: echo %GamePath%
47- echo Closing EAC and BattleBit...
47+ echo [...] Closing EAC and BattleBit
4848taskkill /f /im BattleBit.exe 2 > nul 1 > nul
4949taskkill /f /im BattleBitEAC.exe 2 > nul 1 > nul
5050taskkill /f /im EasyAntiCheat.exe 2 > nul 1 > nul
5151taskkill /f /im EasyAntiCheat_EOS_Setup.exe 2 > nul 1 > nul
5252taskkill /f /im UnityCrashHandler64.exe 2 > nul 1 > nul
5353
54- echo Removing EAC Service...
54+ echo [...] Removing EAC Service
5555%GamePath% \EasyAntiCheat\EasyAntiCheat_EOS_Setup.exe uninstall 43ed9a4620fa486994c0b368cce73b5d
5656%GamePath% \EasyAntiCheat\EasyAntiCheat_EOS_Setup.exe qa-factory-reset
5757sc delete EasyAntiCheat_EOS 2 > nul 1 > nul
5858sc delete EasyAntiCheat 2 > nul 1 > nul
5959
60- echo Removing EAC folders...
60+ echo [...] Removing EAC folders
6161rmdir /q /s " C:\Program Files (x86)\EasyAntiCheat_EOS" 2 > nul 1 > nul
6262rmdir /s /q " %temp% /../../Roaming/EasyAntiCheat" 2 > nul 1 > nul
6363rmdir /s /q " %temp% /../../Roaming/EasyAntiCheat" 2 > nul 1 > nul
6464rmdir /s /q " %temp% /../../LocalLow/BattleBitDevTeam" 2 > nul 1 > nul
6565
66- Echo Removing EAC registry entries...
66+ Echo [...] Removing EAC registry entries
6767reg delete " HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\EasyAntiCheat_EOS" /f 2 > nul 1 > nul
6868reg delete " HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\EasyAntiCheat" /f 2 > nul 1 > nul
6969
70- echo Installing EAC ...
70+ echo [ ...] Installing EAC
7171%GamePath% \EasyAntiCheat\EasyAntiCheat_EOS_Setup.exe install 43ed9a4620fa486994c0b368cce73b5d
7272
73- echo Switching EAC service mode to automatic...
73+ echo [...] Switching EAC service mode to automatic
7474sc config EasyAntiCheat_EOS start=Auto 2 > nul 1 > nul
7575
76- echo Adding EAC ^ & BattleBit Folder to Windows Defender exclusions...
76+ echo [...] Adding EAC ^ & BattleBit Folder to Windows Defender exclusions
7777powershell -Command Add-MpPreference -ExclusionPath %GamePath% > nul
7878powershell -Command Add-MpPreference -ExclusionPath 'C:\Program Files (x86)\EasyAntiCheat' > nul
7979powershell -Command Add-MpPreference -ExclusionPath 'C:\Program Files (x86)\EasyAntiCheat_EOS' > nul
8080
81- echo Adding EAC ^ & BattleBit executables to Defender Firewall exclusions...
81+ echo [...] Adding EAC ^ & BattleBit executables to Defender Firewall exclusions
8282powershell -Command New-NetFirewallRule -Program '%GamePath% \BattleBit.exe' -Action Allow -Profile Domain, Private -DisplayName 'Allow BattleBit' -Direction Outbound > nul
8383powershell -Command New-NetFirewallRule -Program '%GamePath% \EasyAntiCheat.exe' -Action Allow -Profile Domain, Private -DisplayName 'Allow BattleBit EAC' -Direction Outbound > nul
8484powershell -Command New-NetFirewallRule -Program 'C:\Program Files (x86)\EasyAntiCheat_EOS\EasyAntiCheat_EOS.exe' -Action Allow -Profile Domain, Private -DisplayName 'Allow EAC_EOS' -Direction Outbound > nul
8585
8686echo .
87- echo EAC reinstall completed.
87+ echo [+] EAC reinstall completed.
8888echo .
8989
90- echo Flushing DNS ...
90+ echo [ ...] Flushing DNS
9191ipconfig /flushdns 2 > nul 1 > nul
92- echo Testing EAC Connection...
92+ echo [...] Testing EAC Connection
9393echo download.eac-cdn.com:
9494curl download.eac-cdn.com --max-time 10
9595echo .
@@ -98,47 +98,64 @@ curl download-alt.easyanticheat.net --max-time 10
9898echo .
9999
100100echo .
101- echo Installing VCRedist 2015-2022 x86-64
101+ echo [...] Installing VCRedist 2015-2022 x86-64
102102echo .
103103
104- echo Downloading VC_redist.x64...
104+ echo [...] Downloading VC_redist.x64
105105curl -L https://aka.ms/vs/17/release/vc_redist.x64.exe --output %temp% " VC_redist.x64.exe" --write-out " %errorlevel% " --progress-bar 1 > nul
106106if %errorlevel% EQU 00 (
107- echo Installing VC_redist.x64.exe ^ (might take a bit^ )...
108- %temp% VC_redist.x64.exe /install /quiet /norestart
109- if ERRORLEVEL 0 (
110- echo VC_redist.x64.exe installed successfully!
111- ) else (
112- echo VC_redist.x64.exe install failed with code: %ERRORLEVEL%
113- )
114- del %temp% VC_redist.x64.exe
107+ goto install64
115108) else (
116- echo VC_redist.x64 - download failed ^ :^ (
109+ echo [?] Unable to use curl, switching to bitsadmin instead...
110+ bitsadmin.exe /transfer " VC_redist.x64" /download /priority FOREGROUND " https://aka.ms/vs/17/release/vc_redist.x64.exe" %temp% VC_redist.x64.exe 1 > nul
111+ if ERRORLEVEL 0 goto install64
112+ echo [!] VC_redist.x64 - download failed ^ :^ (
113+ echo [!] Please, download and install VC_redist.x64.exe manually - https://aka.ms/vs/17/release/vc_redist.x64.exe
114+ goto endinstall64
117115)
118-
116+ :install64
117+ echo [...] Installing VC_redist.x64.exe ^ (might take a bit^ )
118+ %temp% VC_redist.x64.exe /install /quiet /norestart
119+ if ERRORLEVEL 0 (
120+ echo [+] VC_redist.x64.exe installed successfully!
121+ ) else (
122+ echo [!] VC_redist.x64.exe install failed with code: %ERRORLEVEL%
123+ echo [!] Please, download and install VC_redist.x64.exe manually - https://aka.ms/vs/17/release/vc_redist.x64.exe
124+ )
125+ del %temp% VC_redist.x64.exe
126+ :endinstall64
119127echo .
120- echo Downloading VC_redist.x86...
128+
129+ echo [...] Downloading VC_redist.x86
121130curl -L https://aka.ms/vs/17/release/vc_redist.x86.exe --output %temp% " VC_redist.x86.exe" --write-out " %errorlevel% " --progress-bar 1 > nul
122- if %errorlevel% EQU 00 (
123- echo Installing VC_redist.x86.exe ^ (might take a bit^ )...
124- %temp% VC_redist.x86.exe /install /quiet /norestart
125- if ERRORLEVEL 0 (
126- echo VC_redist.x86.exe installed successfully!
127- ) else (
128- echo VC_redist.x86.exe install failed with code: %ERRORLEVEL%
129- )
130- del %temp% VC_redist.x86.exe
131+ if %errorlevel% EQU 00 (
132+ goto install86
131133) else (
132- echo VC_redist.x86.exe - download failed ^ :^ (
134+ echo [?] Unable to use curl, switching to bitsadmin instead...
135+ bitsadmin.exe /transfer " VC_redist.x86" /download /priority FOREGROUND " https://aka.ms/vs/17/release/vc_redist.x86.exe" %temp% VC_redist.x86.exe 1 > nul
136+ if ERRORLEVEL 0 goto install86
137+ echo [!] VC_redist.x86 - download failed ^ :^ (
138+ echo [!] Please, download and install VC_redist.x86.exe manually - https://aka.ms/vs/17/release/vc_redist.x86.exe
139+ goto endinstall86
133140)
134-
141+ :install86
142+ echo [...] Installing VC_redist.x86.exe ^ (might take a bit^ )
143+ %temp% VC_redist.x86.exe /install /quiet /norestart
144+ if ERRORLEVEL 0 (
145+ echo [+] VC_redist.x86.exe installed successfully!
146+ ) else (
147+ echo [!] VC_redist.x86.exe install failed with code: %ERRORLEVEL%
148+ echo [!] Please, download and install VC_redist.x86.exe manually - https://aka.ms/vs/17/release/vc_redist.x86.exe
149+ )
150+ del %temp% VC_redist.x86.exe
151+ :endinstall86
135152echo .
136- echo Finished!
153+ echo [+] Finished!
137154echo .
138155echo =================================================================================
139- echo NOTICE: If there's any errors above, screenshot them and send to #anti-cheat -help.
140- echo You might also need to select " Install & Repair Easy Anti Cheat" launch option
141- echo before actually launching the game.
156+ echo NOTICE: If there's any errors above, screenshot them and send to #general -help.
157+ echo You might also need to run " Install & Repair Easy Anti Cheat" launch option
158+ echo before running BattleBit itself.
142159echo =================================================================================
143160echo .
144161CHOICE /C YN /M " Do you want to reboot your PC (recommended)"
@@ -147,7 +164,7 @@ IF %ERRORLEVEL% EQU 1 (
147164 shutdown /s /f /t 0
148165) ELSE IF %ERRORLEVEL% EQU 2 (
149166 echo .
150- echo Rebooting your PC is highly recommended, do it before opening BattleBit.
167+ echo [!] Rebooting your PC is highly recommended, do it before opening BattleBit.
151168)
152169
153170echo .
0 commit comments