Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
LizenzFass78851 authored Jul 9, 2024
1 parent 32bfd90 commit beeccf2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions w11 modding/Inplace (Workaround).cmd
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit beeccf2

Please sign in to comment.