From e21fc465cd0057c5236272461426ceebab2a464c Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Thu, 20 Jun 2024 01:19:19 -0700 Subject: [PATCH] Create Enable GamesDows V1 --- Enable GamesDows V1 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Enable GamesDows V1 diff --git a/Enable GamesDows V1 b/Enable GamesDows V1 new file mode 100644 index 0000000..3b1cd3a --- /dev/null +++ b/Enable GamesDows V1 @@ -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%