diff --git a/Enable GamesDows v2 b/Enable GamesDows v2 index 617b036..11e1365 100644 --- a/Enable GamesDows v2 +++ b/Enable GamesDows v2 @@ -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