maybe this is because we are using different wimlib version, mine is the latest one in bin\bin64 folder new script with wimlib Spoiler: W10UI v10.34 Code: ============================================================ Running W10UI v10.34 ============================================================ ============================================================ Copying DVD Drive contents to work directory... ============================================================ ============================================================ Extracting dpx.dll file... ============================================================ ============================================================ Extracting .cab files from .msu files... ============================================================ 1/1: windows11.0-kb5030310-x64_LCU_2361.1.13.msu [Combined UUP] ============================================================ Extracting files from update cabinets (.cab)... *** This will require some disk space, please be patient *** ============================================================ 1/6: defender-dism-x64_27.09.2023.cab 2/6: windows11.0-kb5027397-x64_EP.23H2_2355.1.1.cab [Enablement] 3/6: windows11.0-kb5029863-x64_DU.SafeOS_2209.1.1.cab [SafeOS DU] 4/6: windows11.0-kb5030327-x64_DU.Sources_2275.cab [Setup DU] 5/6: windows11.0-kb5030651-x64-ndp481_CU_9191.1.cab [NetFx] 6/6: Windows11.0-KB5030508-x64_inout.cab [SSU] ============================================================ Mounting sources\install.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 2 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 [===== 10.0% ] [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding Defender update... ============================================================ ============================================================ Adding .NET Framework 3.5 feature... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Enabling feature(s) [==========================100.0%==========================] The operation completed successfully. ============================================================ Reinstalling cumulative update(s)... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5029863~31bf3856ad364e35~amd64~~22621.2209.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1844 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [=================== 33.6% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.34\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. Using LZX compression with 8 threads Archiving file data: 1504 MiB of 1504 MiB (100%) done ============================================================ Adding updated winre.wim ... ============================================================ Скопировано файлов: 1. ============================================================ Unmounting sources\install.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.34\DVD10UI\sources\install.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\install.wim ... ============================================================ Using LZX compression with 8 threads Archiving file data: 10 GiB of 10 GiB (100%) done ============================================================ Mounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.34\DVD10UI\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [=================== 33.6% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.34\DVD10UI\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\boot.wim ... ============================================================ Using LZX compression with 8 threads Archiving file data: 1516 MiB of 1516 MiB (100%) done ============================================================ Adding setup dynamic update(s)... ============================================================ windows11.0-kb5030327-x64_DU.Sources_2275.cab ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ ISO Location: "F:\W10UI_10.34" OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 43 directories) Scanning source tree complete (944 files in 86 directories) Computing directory information complete Image file is 6265274368 bytes (before optimization) Writing 944 files in 86 directories to 22631.2361.230915-2031.23H2_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US.iso 100% complete Storage optimization saved 24 files, 14239744 bytes (1% of image) After optimization, image file is 6253166592 bytes Space saved because of embedding, sparseness or optimization = 14239744 Done. ============================================================ Finished ============================================================ Press 9 to exit. I need to go, can test old wimlib version tomorrow but I think this is not the root cause of the issue
I don't know if this matters, but the most recent wimlib is: wimlib-1.14.3 (released September 4, 2023) https://wimlib.net/ Just say'n...
With wimlib =1 it fails on the new test script too, with set to 0 the iso boots fine. Code: @setlocal DisableDelayedExpansion @set uiv=v10.34_Test @echo off :: enable debug mode, you must also set target and repo (if updates are not beside the script) set _Debug=0 :: when changing below options, recommended to set the new values between = and " marks :: target distribution, wim file or offline image :: leave it blank to update current online os, or automatically detect wim file next to the script set "Target=%~dp022621_Work_x64_US" :: updates location :: leave it blank to automatically detect the current script directory set "Repo=%~dp022631_Updates_x64" :: dism.exe tool custom path (if Host OS is Win8.1 or earlier and no Win10 ADK installed) set "DismRoot=dism.exe" :: enable .NET 3.5 feature set Net35=1 :: optional, specify custom "folder" path for microsoft-windows-netfx3-ondemand-package.cab set "Net35Source=" :: Cleanup OS images to "compress" superseded components (might take long time to complete) set Cleanup=0 :: Rebase OS images to "remove" superseded components (warning: break "Reset this PC" feature) :: require first to set Cleanup=1 set ResetBase=0 :: update winre.wim if detected inside install.wim set WinRE=1 :: Force updating winre.wim with Cumulative Update regardless if SafeOS update detected set LCUwinre=1 :: update ISO boot files bootmgr/memtest/efisys.bin from Cumulative Update set UpdtBootFiles=1 :: 1 = do not install EdgeChromium with Enablement Package or Cumulative Update :: 2 = alternative workaround to avoid EdgeChromium with Cumulative Update only set SkipEdge=0 :: optional, set directory for temporary extracted files (default is on the same drive as the script) set "_CabDir=W10UItemp" :: optional, set mount directory for updating wim files (default is on the same drive as the script) set "MountDir=c:\W10UImount" set "WinreMount=c:\W10UImount" :: start the process directly once you execute the script, as long as the other options are correctly set set AutoStart=0 :: detect and use wimlib-imagex.exe for exporting wim files instead dism.exe set UseWimlib=0 :: ### Options for distribution target only ### :: convert install.wim to install.esd :: warning: the process will consume very high amount of CPU and RAM resources set wim2esd=0 :: split install.wim into multiple install.swm files :: note: if both options are 1, install.esd takes precedence over split install.swm set wim2swm=0 :: create new iso file :: require Win10 ADK, or place oscdimg.exe or cdimage.exe next to the script, or inside bin folder set ISO=1 :: folder path for iso file, leave it blank to create ISO in the script current directory set "ISODir=" :: delete DVD distribution folder after creating updated ISO set Delete_Source=0
Thanks so it's caused by wimlib (which is weird since it works with uup-converter) i will make wimlib used only for install.wim
I did put in the wimlib files from the latest UUP>ISO version and the ISO only boots into the BSOD, when wimlib is not used all is working fine, did several tests now.
I updated two ISO with and without wimlib using latest released W10UI script (not the one for testing) boot.wim without wimlib works fine with ISO that was updated with wimlib, so something is wrong with boot.wim I checked both boot.wim and everything was the same but GUID, not sure if it's critical also about this winre.wim might be affected as well, going to test it upd: winre.wim boots fine, only boot.wim is broken anyway, since no one knows why boot.wim is broken with wimlib, I don't want to use it at all
Time to erase v10.34 from existence v10.35 test for the wimlib install.wim only thing http://put.nu/files/TCOk8Kj.zip
Witch command line was used with wimlib and boot.wim? Seems that the images 2 is not marked for booting (Boot Index = 0; must be Boot Index = 2) No boot: wimlib-imagex export boot.wim all boot5.wim --compress=LZX Works fine wimlib-imagex export boot.wim 1 boot6.wim --compress=LZX wimlib-imagex export boot.wim 2 boot6.wim --compress=LZX --boot Works also with wimlib-imagex 1.14.3.
It's shared with install.wim rebuild routine i assumed (or remember) that wimlib preserve boot image flag i guess i could use optimize command instead export
W10UI v10.35 - Fixed wimlib issue with boot.wim - Changed "UseWimlib" default state to OFF i.e. unless you enable the option yourself, you essentially have same v10.33 behavior
Spoiler: W10UI.ini Code: [W10UI-Configuration] Target = Repo = DismRoot =dism.exe Net35 =1 Net35Source = Cleanup =1 ResetBase =1 LCUwinre =1 WinRE =1 UpdtBootFiles =1 SkipEdge =0 UseWimlib =1 _CabDir =W10UItemp MountDir =W10UImount WinreMount =W10UImountre wim2esd =0 wim2swm =0 ISO =1 ISODir = Delete_Source =0 AutoStart =0 Spoiler: W10UI v10.35 log Code: ============================================================ Running W10UI v10.35 ============================================================ ============================================================ Copying DVD Drive contents to work directory... ============================================================ ============================================================ Extracting dpx.dll file... ============================================================ ============================================================ Extracting .cab files from .msu files... ============================================================ 1/1: windows11.0-kb5030310-x64_LCU_2361.1.13.msu [Combined UUP] ============================================================ Extracting files from update cabinets (.cab)... *** This will require some disk space, please be patient *** ============================================================ 1/6: defender-dism-x64_27.09.2023.cab 2/6: windows11.0-kb5027397-x64_EP.23H2_2355.1.1.cab [Enablement] 3/6: windows11.0-kb5029863-x64_DU.SafeOS_2209.1.1.cab [SafeOS DU] 4/6: windows11.0-kb5030327-x64_DU.Sources_2275.cab [Setup DU] 5/6: windows11.0-kb5030651-x64-ndp481_CU_9191.1.cab [NetFx] 6/6: Windows11.0-KB5030508-x64_inout.cab [SSU] ============================================================ Mounting sources\install.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 2 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 [===== 10.0% ] [=========== 20.0% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding Defender update... ============================================================ ============================================================ Adding .NET Framework 3.5 feature... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Enabling feature(s) [==========================100.0%==========================] The operation completed successfully. ============================================================ Reinstalling cumulative update(s)... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22631.2361 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5029863~31bf3856ad364e35~amd64~~22621.2209.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1844 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [=================== 33.6% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.35\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. "winre.wim" original size: 915749 KiB Using LZX compression with 8 threads Archiving file data: 1504 MiB of 1504 MiB (100%) done "winre.wim" optimized size: 657052 KiB Space saved: 258697 KiB ============================================================ Adding updated winre.wim ... ============================================================ Скопировано файлов: 1. ============================================================ Unmounting sources\install.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.35\DVD10UI\sources\install.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\install.wim ... ============================================================ Using LZX compression with 8 threads Archiving file data: 10 GiB of 10 GiB (100%) done ============================================================ Mounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [=================== 33.6% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.35\DVD10UI\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [=================== 33.6% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22621.1 Image File : F:\W10UI_10.35\DVD10UI\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\boot.wim ... ============================================================ "sources\boot.wim" original size: 902566 KiB Using LZX compression with 8 threads Archiving file data: 1517 MiB of 1517 MiB (100%) done "sources\boot.wim" optimized size: 638086 KiB Space saved: 264479 KiB ============================================================ Adding setup dynamic update(s)... ============================================================ windows11.0-kb5030327-x64_DU.Sources_2275.cab ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ ISO Location: "F:\W10UI_10.35" OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 43 directories) Scanning source tree complete (944 files in 86 directories) Computing directory information complete Image file is 6266126336 bytes (before optimization) Writing 944 files in 86 directories to 22631.2361.230915-2031.23H2_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US.iso 100% complete Storage optimization saved 24 files, 14239744 bytes (1% of image) After optimization, image file is 6254030848 bytes Space saved because of embedding, sparseness or optimization = 14239744 Done. ============================================================ Finished ============================================================ Press 9 to exit. ISO boots fine now Spoiler one more thing: seems like it's still export for install.wim Code: ============================================================ Rebuilding sources\install.wim ... ============================================================ Using LZX compression with 8 threads Archiving file data: 10 GiB of 10 GiB (100%) done because this is how winre.wim looks like with optimize Code: "winre.wim" original size: 915749 KiB Using LZX compression with 8 threads Archiving file data: 1504 MiB of 1504 MiB (100%) done "winre.wim" optimized size: 657052 KiB Space saved: 258697 KiB and boot.wim Code: ============================================================ Rebuilding sources\boot.wim ... ============================================================ "sources\boot.wim" original size: 902566 KiB Using LZX compression with 8 threads Archiving file data: 1517 MiB of 1517 MiB (100%) done "sources\boot.wim" optimized size: 638086 KiB Space saved: 264479 KiB
When you select one or some indexes to update... Keep indexes: Selected = export Keep indexes: ALL = optimize
Code: @setlocal DisableDelayedExpansion @set uiv=v10.35 @echo off :: enable debug mode, you must also set target and repo (if updates are not beside the script) set _Debug=0 :: when changing below options, recommended to set the new values between = and " marks :: target distribution, wim file or offline image :: leave it blank to update current online os, or automatically detect wim file next to the script set "Target=%~dp022621_Work_x64_US" :: updates location :: leave it blank to automatically detect the current script directory set "Repo=%~dp022631_Updates_x64" :: dism.exe tool custom path (if Host OS is Win8.1 or earlier and no Win10 ADK installed) set "DismRoot=dism.exe" :: enable .NET 3.5 feature set Net35=1 :: optional, specify custom "folder" path for microsoft-windows-netfx3-ondemand-package.cab set "Net35Source=%~dp022621_SXS_x64" :: Cleanup OS images to "compress" superseded components (might take long time to complete) set Cleanup=1 :: Rebase OS images to "remove" superseded components (warning: break "Reset this PC" feature) :: require first to set Cleanup=1 set ResetBase=1 :: update winre.wim if detected inside install.wim set WinRE=1 :: Force updating winre.wim with Cumulative Update even if SafeOS update detected set LCUwinre=1 :: update ISO boot files bootmgr/bootmgr.efi/efisys.bin from Cumulative Update set UpdtBootFiles=1 :: 1 = do not install EdgeChromium with Enablement Package or Cumulative Update :: 2 = alternative workaround to avoid EdgeChromium with Cumulative Update only set SkipEdge=0 :: optional, set directory for temporary extracted files (default is on the same drive as the script) set "_CabDir=c:\W10UItemp" :: optional, set mount directory for updating wim files (default is on the same drive as the script) set "MountDir=c:\W10UImount" set "WinreMount=c:\W10UImount" :: start the process directly once you execute the script, as long as the other options are correctly set set AutoStart=0 :: detect and use wimlib-imagex.exe for exporting wim files instead dism.exe set UseWimlib=1 :: ### Options for distribution target only ### :: convert install.wim to install.esd :: warning: the process will consume very high amount of CPU and RAM resources set wim2esd=0 :: split install.wim into multiple install.swm files :: note: if both options are 1, install.esd takes precedence over split install.swm set wim2swm=0 :: create new iso file :: require Win10 ADK, or place oscdimg.exe or cdimage.exe next to the script, or inside bin folder set ISO=1 :: folder path for iso file, leave it blank to create ISO in the script current directory set "ISODir=" :: delete DVD distribution folder after creating updated ISO set Delete_Source=0 Code: ====================== W10UI v10.35 ======================= [1] Target (x64): "E:\W11UI\22621_Work_x64_US" [2] Updates: "E:\W11UI\22631_Updates_x64" [3] DISM: "Host OS" [4] Enable .NET 3.5: YES [5] Cleanup System Image: YES [6] Reset Image Base: YES [7] Update WinRE.wim: YES [8] install.wim selected indexes: 1 / [K] Keep indexes: Selected [M] Mount Directory: "c:\W10UImount_12074" [E] Extraction Directory: "c:\W10UItemp_19801" ============================================================ Change a menu option, press 0 to start the process, or 9 to exit: Code: ============================================================ Running W10UI v10.35 ============================================================ ============================================================ Extracting dpx.dll file... ============================================================ ============================================================ Extracting .cab files from .msu files... ============================================================ 1/1: windows11.0-kb5030310-x64_LCU_2361.1.13.msu [Combined UUP] ============================================================ Extracting files from update cabinets (.cab)... *** This will require some disk space, please be patient *** ============================================================ 1/6: defender-dism-x64_steven4554_Sept_27_2023.cab 2/6: windows11.0-kb5027397-x64_23H2_EP.cab [Enablement] 3/6: windows11.0-kb5029863-x64_DU_SafeOS_2209.1.1.cab [SafeOS DU] 4/6: windows11.0-kb5030327-x64_DU_Sources_2275.cab [Setup DU] 5/6: Windows11.0-KB5030651-x64-NDP481_CU_9191.1.cab [NetFx] 6/6: Windows11.0-KB5030508-x64_inout.cab [SSU] ============================================================ Mounting sources\install.wim - index 1/11 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 2 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] Processing 2 of 2 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22631.2361 [===== 10.0% ] [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22631.2361 [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding Defender update... ============================================================ ============================================================ Adding .NET Framework 3.5 feature... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22631.2361 Enabling feature(s) [==========================100.0%==========================] The operation completed successfully. ============================================================ Reinstalling cumulative update(s)... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22631.2361 Processing 1 of 1 - Adding package Package_for_DotNetRollup_481~31bf3856ad364e35~amd64~~10.0.9191.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22631.2361 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5029863~31bf3856ad364e35~amd64~~22621.2209.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1844 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [=========== 20.0% ] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image File : E:\W11UI\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. "winre.wim" original size: 922622 KiB Using LZX compression with 16 threads Archiving file data: 1502 MiB of 1502 MiB (100%) done "winre.wim" optimized size: 659650 KiB Space saved: 262972 KiB ============================================================ Adding updated winre.wim ... ============================================================ 1 file(s) copied. ============================================================ Unmounting sources\install.wim - index 1/11 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image File : E:\W11UI\22621_Work_x64_US\sources\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\install.wim ... ============================================================ Using LZX compression with 16 threads Archiving file data: 10 GiB of 10 GiB (100%) done ============================================================ Mounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [=========== 20.0% ] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_2351~31bf3856ad364e35~amd64~~22621.2351.1.0 [==========================100.0%==========================] The changes due to package Package_for_ServicingStack_2351 requires the current servicing session to be reloaded. All the packages will be processed again. The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - Adding package Package_for_KB5027397~31bf3856ad364e35~amd64~~22621.2355.1.1 [==========================100.0%==========================] The operation completed successfully. windows11.0-kb5030310-x64_LCU_2361.1.13.msu Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.1 Processing 1 of 1 - [===========================80.0%============== ] [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image Version: 10.0.22621.2361 [=========== 20.0% ] The operation completed successfully. ============================================================ Unmounting sources\boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.22000.653 Image File : E:\W11UI\22621_Work_x64_US\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding sources\boot.wim ... ============================================================ "sources\boot.wim" original size: 754648 KiB Using LZX compression with 16 threads Archiving file data: 1175 MiB of 1175 MiB (100%) done "sources\boot.wim" optimized size: 510794 KiB Space saved: 243854 KiB ============================================================ Adding setup dynamic update(s)... ============================================================ windows11.0-kb5030327-x64_DU_Sources_2275.cab ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ ISO Location: "E:\W11UI" OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 43 directories) Scanning source tree complete (944 files in 86 directories) Computing directory information complete Image file is 6293225472 bytes (before optimization) Writing 944 files in 86 directories to 22631.2361.230915-2031.23H2_RELEASE_SVC_PROD3_CLIENT_X64FRE_EN-US.iso 100% complete Storage optimization saved 24 files, 14239744 bytes (1% of image) After optimization, image file is 6281121792 bytes Space saved because of embedding, sparseness or optimization = 14239744 Done. ============================================================ Finished ============================================================ Press 9 to exit. No BSOD
I want to use max compression for winre.wim and boot.wim with wimlib I see this on 2113 line Code: !_wimlib! optimize winre.wim so I think I can edit it to the Code: !_wimlib! optimize winre.wim --compress=LZX:100 --threads=6 --nocheck but what about boot.wim? I found this on 1989 line Code: !_wimlib! optimize %_wimfile% but I think this is for both instal.wim and boot.wim, right?
Yes you could change to Code: echo %_wimfile% | find /i "install" >nul && (!_wimlib! optimize %_wimfile%) || (!_wimlib! optimize %_wimfile% --compress=LZX:100 --threads=6 --nocheck) why would you want to slow down bootable wims?
thanks a ton for a workaround in my tests lzms:100 install.esd decompresses faster than install.wim, so it's all about i/o bottleneck so I assumed there's nothing wrong with maximum compressed bootable wims, at least I never had any issues with it in years on modern machines