Update Enable GamesDows v2

This commit is contained in:
jazir5 2024-01-30 21:44:49 -08:00 committed by GitHub
parent f371b307f5
commit 6acf49d5f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,14 +22,6 @@ SET "SCRIPT_PATH1=%STEAM_FOLDER%\%SCRIPT_NAME1%"
SET "SCRIPT_PATH1=%STEAM_FOLDER%\%SCRIPT_NAME%"
SET "EXPLORER_PATH=C:\Windows\explorer.exe"
:: Create VBScript to run the batch file silently
@echo off
SET "VBS_NAME1=RunSteamAsAdmin.vbs"
SET "VBS_PATH1=%STEAM_FOLDER%\%VBS_NAME%"
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 StartSteamAsAdmin.bat script
(
echo @echo off
@ -40,6 +32,14 @@ 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%"
:: Create VBScript to run the batch file silently
@echo off
SET "VBS_NAME1=RunSteamAsAdmin.vbs"
SET "VBS_PATH1=%STEAM_FOLDER%\%VBS_NAME1%"
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 Create the DelayedExplorerStart.bat script in the Steam folder
(
echo @echo off