Update Enable GamesDows v2

This commit is contained in:
jazir5 2024-01-30 21:43:42 -08:00 committed by GitHub
parent 10971d7276
commit f371b307f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,15 @@ echo Set WshShell = CreateObject("WScript.Shell") > "%VBS_PATH1%"
echo WshShell.Run chr(34)^&"%SCRIPT_PATH1%"^&chr(34), 0, True >> "%VBS_PATH1%"
echo Set WshShell = Nothing >> "%VBS_PATH1%"
echo Creating DelayedExplorerStart.bat script
echo Creating StartSteamAsAdmin.bat script
(
echo @echo off
echo Check if user is logged on
echo query user ^| find /i "%USERNAME%" ^>nul
echo if ERRORLEVEL 1 exit
echo Set Steam As Admin
echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f
) > "%SCRIPT_PATH1%"
echo Create the DelayedExplorerStart.bat script in the Steam folder
(