From 7e4caac315117c355e5d56637c7ec8a2490fde6f Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:45:58 -0700 Subject: [PATCH] Update and rename Enable GamesDows.bat to Enable GamesDows V2 Testing.bat --- ...ows.bat => Enable GamesDows V2 Testing.bat | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) rename Enable GamesDows.bat => Enable GamesDows V2 Testing.bat (87%) diff --git a/Enable GamesDows.bat b/Enable GamesDows V2 Testing.bat similarity index 87% rename from Enable GamesDows.bat rename to Enable GamesDows V2 Testing.bat index a9a98d6..d49c157 100644 --- a/Enable GamesDows.bat +++ b/Enable GamesDows V2 Testing.bat @@ -9,7 +9,6 @@ SET "VALUE_NAME=Shell" SET "STEAM_PATH=C:\Program Files (x86)\Steam\Steam.exe -bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%STEAM_PATH%" /f - @echo off SETLOCAL EnableExtensions EnableDelayedExpansion @@ -18,6 +17,29 @@ SET "STEAM_FOLDER=C:\Program Files (x86)\Steam" SET "SCRIPT_NAME=DelayedExplorerStart.bat" SET "SCRIPT_PATH=%STEAM_FOLDER%\%SCRIPT_NAME%" SET "EXPLORER_PATH=C:\Windows\explorer.exe" +SET "MANIFEST_PATH=%STEAM_PATH%.manifest" + +:: Create the manifest file to force admin privileges for Steam +echo Creating manifest file for Steam to run as admin... +( +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +echo ^ +) > "%MANIFEST_PATH%" + +if %errorlevel% neq 0 ( + echo Failed to create manifest file! + pause + exit /b 1 +) +echo Manifest file created successfully at %MANIFEST_PATH%. echo Creating DelayedExplorerStart.bat script