Create Enable GamesDows V1

This commit is contained in:
jazir5 2024-06-20 01:19:19 -07:00 committed by GitHub
parent 1dae7faaf8
commit e21fc465cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

28
Enable GamesDows V1 Normal file
View File

@ -0,0 +1,28 @@
@echo off
SETLOCAL EnableExtensions EnableDelayedExpansion
:: Define paths and parameters
SET "STEAM_FOLDER=C:\Program Files (x86)\Steam"
SET "STEAM_PATH=%STEAM_FOLDER%\Steam.exe"
SET "STEAM_ARGS=-bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles"
SET "EXPLORER_PATH=C:\Windows\explorer.exe"
SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
SET "VALUE_NAME=Shell"
SET "SCRIPT_NAME=DelayedExplorerStart.bat"
SET "SCRIPT_PATH=%STEAM_FOLDER%\%SCRIPT_NAME%"
echo Setting Steam Big Picture as default shell
:: Set Steam Big Picture as the default shell
REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "\"%STEAM_PATH%\" %STEAM_ARGS%" /f
:: Verify if the registry was set correctly
REG QUERY "%KEY_NAME%" /v %VALUE_NAME%
IF NOT "%ERRORLEVEL%"=="0" (
echo Failed to set Steam as the default shell.
pause
exit /b 1
)
echo Steam set as default shell successfully:
REG QUERY "%KEY_NAME%" /v %VALUE_NAME%