Created
October 21, 2021 15:31
-
-
Save kowith337/f6a954822da6892ccdcbacfbe7707465 to your computer and use it in GitHub Desktop.
mod of AveYo's steam_silent_no_browser.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off &color 04 & mode 120,10 &title Steam fast restart with SkipGameUpdate and no crash/repair (tweaked) | |
:: &color 4f &mode 80,4 | |
REM Please note, this tweaked version require you to install "NirCMD", else, install full set of "Nirlauncher" is | |
:: recommended for insane system massacre! (choco install nirlauncher /f /y /i) | |
REM Any previous processes should be killed before launch, even "SteamService" itself! | |
taskkill /f /im nircmd.exe >nul | |
taskkill /f /t /im steam.exe >nul | |
taskkill /f /t /im steamservice.exe >nul | |
taskkill /f /t /im steamwebhelper.exe >nul | |
taskkill /f /t /im steamerrorreporter.exe >nul | |
taskkill /f /t /im steamerrorreporter64.exe >nul | |
timeout /t 1 >nul | |
REM I HATE THIS BULLSHIT SERVICE! | |
sc stop SteamService | |
sc delete SteamService | |
timeout /t 1 >nul | |
:: [2018.12.12]: switch old friends ui on and fix silent mode so it goes straight to systray icon | |
set "STEAMPATH=C:\tools\Steam" &rem AveYo:" Override detection here if needed " | |
:: detect steam | |
if not exist "%STEAMPATH%\Steam.exe" call :reg_query STEAMPATH "HKCU\SOFTWARE\Valve\Steam" "SteamPath" | |
if defined STEAMPATH for %%# in ("%STEAMPATH%") do set "STEAMPATH=%%~dpnx#" | |
if not exist "%STEAMPATH%\Steam.exe" echo Cannot find SteamPath in registry! & timeout /t 3 & exit | |
:inception | |
:: kill and restart steam | |
taskkill /im Steam.exe /t /f >nul 2>nul & timeout /t 1 >nul & del /f /q "%STEAMPATH%\.crash" >nul 2>nul & timeout /t 1 >nul | |
set l1=-silent -console -single_core -forceservice -nodircheck -norepairfiles -noverifyfiles -nocrashmonitor -nocrashdialog | |
set l2=-nofriendsui -no-browser -tcp -skipstreamingdrivers -vrdisable -manuallyclearframes 0 +"@AllowSkipGameUpdate 1 | |
:: set l3=+open steam://friends/status/offline | |
start "Steam" "%STEAMPATH%\Steam.exe" %l1% %l2% | |
nircmd waitprocess steam.exe taskkill /f /t /im steam.exe /im steamservice.exe /im steamwebhelper.exe /im steamerrorreporter.exe /im steamerrorreporter64.exe | |
echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
echo ######## WARNING! A PROCESS TERMINATION WAS DETECTED, POSSIBILITY OF LOSING CUSTOM ARGUMENTS AFTER LAUNCHING!! ######## | |
echo Please keep this command window open until this batch can run Steam again with proper custom arguments because Steam is | |
echo sanity check and verify client updates every launch session and force restart process to relaunch client, this cause | |
echo losing custom arguments and possibly run its client along with crappy "SteamWebHelper" processes spam, sometime or | |
echo mostly you will get a dialog that Steam was failed to connecting to their networks because they want to run with newer | |
echo UI, if that so, it's a hint that this batch successfully run Steam with lite mode as it should be, no browsers, no | |
echo "SteamWebHelper" processes spam, plain and classic friends UI that better than fully loaded with junkful animations!!! | |
echo - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
goto inception | |
rem Dead end? but sorry, because "Steam" recently aggresive check process and restart without any custom arguments to make sure | |
:: you're launch its apps properly, but with f**king "SteamWebHelper" that dragging my laptop performance too much, along with | |
:: new chat interface that able to decorate by too much animations, force end newer process and keep relaunch with custom | |
:: arguments should be a great punishment, GO TO HELL THOSE PROCESS HOGGERS AND TOO MUCH NEW UI, JUST LET ME BACK TO BASICS!! | |
exit | |
:: utility | |
:reg_query [USAGE] call :reg_query ResultVar "HKCU\KeyName" "ValueName" | |
(for /f "skip=2 delims=" %%s in ('reg query "%~2" /v "%~3" /z 2^>nul') do set ".=%%s" & call set "%~1=%%.:*) =%%") & exit/b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment