From beeccf22aa35dd0ea56d1e9cac2cdd347ae1c86a Mon Sep 17 00:00:00 2001 From: LizenzFass78851 <82592556+LizenzFass78851@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:21:40 +0200 Subject: [PATCH] Add files via upload --- w11 modding/Inplace (Workaround).cmd | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 w11 modding/Inplace (Workaround).cmd diff --git a/w11 modding/Inplace (Workaround).cmd b/w11 modding/Inplace (Workaround).cmd new file mode 100644 index 0000000..be75aed --- /dev/null +++ b/w11 modding/Inplace (Workaround).cmd @@ -0,0 +1,33 @@ +@echo off + +pushd "%CD%" && CD /D "%~dp0" + +TITLE Inplace (Workaround) + + +if exist .\sources\setupprep.exe goto :RUN1 +goto :ERROR + +:ERROR + for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.*" set setupdrv=%%I +if exist %setupdrv%:\sources\setupprep.exe goto :RUN2 + +echo Script could not find Windows Setup. +goto :EXITS + +:RUN1 +echo Inplace upgrade is starting - please wait ... +call .\sources\setupprep.exe /product server +goto :EXITS + +:RUN2 +echo Inplace Upgrade is starting from drive %setupdrv%: - please wait ... +call %setupdrv%:\sources\setupprep.exe /product server +goto :EXITS + +:EXITS +timeout 5 +goto :EOF + +:EOF +exit