bugfix
This commit is contained in:
parent
fa55b383d0
commit
d154de5b3a
@ -2,29 +2,63 @@
|
||||
set SOURCES=c:\TEMP\W10\sources
|
||||
set ESD=%SOURCES%\install.esd
|
||||
set WIM=%SOURCES%\install.wim
|
||||
set W10PRO=%SOURCES%\w10pro.wim
|
||||
set STATEFILE=%SOURCES%\w10pro.txt
|
||||
|
||||
if EXIST %ESD% (
|
||||
|
||||
if NOT EXIST %ESD% (
|
||||
echo.
|
||||
echo [%0] WARNING: %ESD% NOT found!
|
||||
|
||||
rem search for "install.wim" ...
|
||||
if NOT EXIST %WIM% (
|
||||
echo [%0] ERROR: %WIM% also NOT found!
|
||||
exit /b
|
||||
) else (
|
||||
rem rename WIM file ...
|
||||
move /Y %WIM% %SOURCES%\install-orig.wim
|
||||
)
|
||||
)
|
||||
echo INFO: found %ESD%
|
||||
|
||||
echo deleting "old" install.wim ...
|
||||
del %WIM% 1>nul 2>nul
|
||||
|
||||
echo exporting image from %SOURCES%\install-orig.wim ...
|
||||
echo exporting image from %ESD% ...
|
||||
dism /Export-Image ^
|
||||
/SourceImageFile: %SOURCES%\install-orig.wim ^
|
||||
/SourceImageFile:%ESD% ^
|
||||
/DestinationImageFile:%WIM% ^
|
||||
/SourceName:"Windows 10 Pro" ^
|
||||
/Compress:None ^
|
||||
/Compress:Fast ^
|
||||
/CheckIntegrity
|
||||
|
||||
echo.
|
||||
echo READY.
|
||||
exit /b
|
||||
|
||||
)
|
||||
|
||||
|
||||
if EXIST %WIM% (
|
||||
|
||||
echo.
|
||||
echo INFO: found %WIM%
|
||||
|
||||
echo exporting image from %WIM% ...
|
||||
dism /Export-Image ^
|
||||
/SourceImageFile:%WIM% ^
|
||||
/DestinationImageFile:%W10PRO% ^
|
||||
/SourceName:"Windows 10 Pro" ^
|
||||
/Compress:Fast ^
|
||||
/CheckIntegrity
|
||||
|
||||
move /Y %W10PRO% %WIM%
|
||||
echo all done >%STATEFILE%
|
||||
|
||||
echo.
|
||||
echo READY.
|
||||
exit /b
|
||||
|
||||
)
|
||||
|
||||
if EXIST %STATEFILE% (
|
||||
|
||||
echo.
|
||||
echo INFO: found %STATEFILE%
|
||||
echo nothing todo. all work was already done.
|
||||
echo READY.
|
||||
exit /b
|
||||
|
||||
)
|
||||
|
||||
set ERRORLEVEL=9009
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user