I've compared the install.wim I created in unstaged method and the uup install.wim with Beyond Compare. Also there is a difference in InboxFodMetadataCache (Both files and registry)
[FIX] 5-installwim_create.cmd [Details] 1.Add Microsoft-Windows-Media-Placeholder-Package 2.Removed all pauses 3.Add .NET native images
@xinso Last Problem:WindowsDefenderApplicationGuard.wim It only exists in professional esds and is not in sxs. Edit: Found it in ppipro_en-us.esd. Updating script...
Minor problem: \WIndows\Winsxs\migration.xml The one in differrent editions are different.Not sure if it's LCU related.
It'd be great if the script can download only default packages. Language packs 38 Language features 38 FOD ? FOD language packs ? All others, optional for users, WON'T be installed by system. Just a waste of time downloading and expanding.
I initially created this to store all of them.ALL in esd,less than 7gb. Code: 6.83 GB (7,342,176,214 bytes)
Hold on.This is the script I'm writing: Spoiler Code: cd /d %~dp0 echo off cls del /s /q .\pkgs.vhd >nul 2>nul if exist .\pkgs.vhd echo Unmount vhd! &&pause &&exit if exist ..\unstaged.wim (set unstaged=..\unstaged.wim) else set unstaged=..\unstaged.esd if not exist %unstaged% echo Couldn't find %unstaged% &&pause&&exit echo unstaged set to %unstaged% pause echo .......................... echo ...Creating vhd... echo .......................... echo create vdisk file="%~dp0pkgs.vhd" maximum=161060 type=expandable >vdisk.txt echo select vdisk file="%~dp0pkgs.vhd" >>vdisk.txt echo attach vdisk >>vdisk.txt echo create partition primary >>vdisk.txt echo assign letter=Z >>vdisk.txt echo format quick label=pkgs >>vdisk.txt diskpart /s .\VDISK.TXT echo .......................... echo ...Releasing Unstaged.wim... echo .......................... rmdir .\logs /s /q >nul md .\logs >nul rmdir .\temp /s /q >nul md .\temp >nul rmdir .\barebone /s /q >nul md .\barebone >nul rmdir .\mount /s /q >nul md .\mount >nul 7z x %unstaged% "packages" -y -o"Z:\" copy /y .\wincore.wim ..\install.wim rmdir /s /q .\mount >nul 2>nul md mount >nul dism /mount-wim /wimfile:..\install.wim /mountdir:.\mount /index:1 rem dism /logpath:logs\apply.log /Apply-image /imagefile:..\unstaged.wim /index:1 /applydir:Z: || pause >nul && exit echo .......................... echo ...Creating barebone.wim... echo .......................... 7z x %unstaged% "windows" -y -o".\mount" 7z x %unstaged% "users" -y -o".\mount" dism /commit-image /mountdir:.\mount echo .......................... echo ...Adding Edition... echo .......................... dism /logpath:logs\1.log /image:mount /apply-unattend:1.xml || pause >nul && exit echo .......................... echo ...Adding Langpack... echo .......................... 7z x %unstaged% "langpack\zh-cn" -y -o"Z:\" dism /logpath:logs\2.log /image:mount /apply-unattend:2.xml || pause >nul && exit pause echo ...Adding fods... echo .......................... rem for %%i in (..\fods\*) do dism /logpath:logs\fods.log /scratchdir:"%~dp0temp" /image:mount /add-package:..\fods\%%i || pause >nul && exit rem for %%i in (..\fods2\*) do dism /logpath:logs\fods2.log /scratchdir:"%~dp0temp" /image:mount /add-package:..\fods2\%%i || pause >nul && exit echo .......................... echo ...Saving image... echo .......................... rem dism /logpath:logs\unmount.log /unmount-wim /mountdir:mount /commit || pause >nul && exit
Ramdisk, WD disabled for running unstaged-gailium119: Code: Conversion took 1:28:31.00 (5311.00s total)
@xinso I've found that generating edition xml and langpack xml seperately is quite inefficient. Can I use this? Spoiler: TestOK Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.22000.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> <source location="Z:\packages\enterprise.mum" /> </package> <package action="install"> <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="10.0.22000.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="en-US" /> <source location="Z:\langpack\en-US\update.mum" /> </package> </servicing> </unattend>
You want to make "Unstaged ISO" alike official one, or "Unstaged image(s) in ISO"? That is for "Unstaged image". "Unstaged ISO" installs an Edition by enterprise.mum in ISO\sources\install.wim\Packages folder. And Language pack in ISO\LangPacks\xx-XX\lp.cab. Be aware.
Feedback: [My way] 19041.1 Image + Ngen.exe eqi RunOnce registry + 19044.1566 LCU Offline + Windows Update 19044.1586 = Update succeeded (This way never fails) [Your way] 19041.1 Image + 19041.1 Native Images & Native Image registry + 19044.1566 LCU Offline + Windows Update 19044.1586 = Update failed Maybe bad luck. But I need assurance , not luck.
Tested 22000.1 Unstaged WITH TWEAK + 22000.581 SSU +22000.588 Spoiler: OK Code: C:\SxSStage\_work>dism /image:mount /Add-package:"D:\SSU-22000.581-x64.cab" 部署映像服务和管理工具 版本: 10.0.22468.1000 映像版本: 10.0.22000.1 正在处理 1 (共 1) - 正在添加程序包 Package_for_ServicingStack_581~31bf3856ad364e35~amd64~~22000.581.1.0 [==========================100.0%==========================] 操作成功完成。 C:\SxSStage\_work>dism /image:mount /Add-package:"D:\Windows10.0-KB5011563-x64\update.mum" 部署映像服务和管理工具 版本: 10.0.22468.1000 映像版本: 10.0.22000.1 正在处理 1 (共 1) - 正在添加程序包 Package_for_RollupFix~31bf3856ad364e35~amd64~~22000.588.1.7 [==========================100.0%==========================] 操作成功完成。 C:\SxSStage\_work>dism /image:mount /Cleanup-image /startcomponentcleanup /resetbase 部署映像服务和管理工具 版本: 10.0.22468.1000 映像版本: 10.0.22000.588 [===== 10.0% ] [==========================100.0%==========================] 操作成功完成。 @xinso I removed the fodmetadata tweak but added the nativeimage tweak.