From 6af4c0767c915475feab9109be79a93d7c7f6b54 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Mar 2021 00:03:35 +0100 Subject: [PATCH] esd / wim ??? --- wim/export-image.cmd | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/wim/export-image.cmd b/wim/export-image.cmd index 03fc3f6..f48cbd4 100644 --- a/wim/export-image.cmd +++ b/wim/export-image.cmd @@ -1,20 +1,30 @@ @echo off set SOURCES=c:\TEMP\W10\sources +set WIM=%SOURCES%\install.esd -if NOT EXIST %SOURCES%\install.esd ( +if NOT EXIST %WIM% ( echo. - echo [%0] ERROR: %SOURCES%\install.esd NOT found! - exit /b + echo [%0] WARNING: %WIM% NOT found! + + rem search for "install.wim" ... + set WIM=%SOURCES%\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 + set WIM=%SOURCES%\install-orig.wim ) -echo deleting old install.wim ... +echo deleting "old" install.wim ... del %SOURCES%\install.wim 1>nul 2>nul -echo exporting image from %SOURCES%\install.esd ... +echo exporting image from %WIM% ... dism /Export-Image ^ - /SourceImageFile:%SOURCES%\install.esd ^ + /SourceImageFile: %WIM% ^ /DestinationImageFile:%SOURCES%\install.wim ^ /SourceName:"Windows 10 Pro" ^ - /Compress:Max ^ + /Compress:None ^ /CheckIntegrity