Good news! I made this sequence cleaner and faster, by integrating the monthly rollup and reloading it after WMF completes. When DISM loads a package, it only changes any files marked as newer according to the manifest. WMF will only overwrite a few files, so the reload skips over any unchanged files. This saves you several minutes during post-setup.
Follow these NEW instructions:
- Start with clean SP1 image. Add the last monthly rollup and update KB2809215
- Add WMF to post-setup, Win7AndW2K8R2-KB3191566-x64.exe
- Integrate, but don't create an ISO
- Extract the CAB file from the monthly rollup, using command:
- expand -f:* kb4539601-x64.msu MyFolder
- Copy this cab to the $OEM$\$$\Setup\Updates folder
- Edit SetupComplete, remove the two dism commands for 3552 & 3229. Install all three updates with one command:
- dism /Online /Add-Package /PackagePath:"%WINDIR%\Setup\Updates" /ignorecheck /norestart
- Add a restart command as the last line.
- Create an ISO, with your updated SetupComplete & monthly rollup CAB in the Updates folder
Here's the technical notes:
NTLite won't allow you referring to the same update in two places, under both Updates list AND the OEM folder. You must first add the rollup, integrate, and after NTLite finishes up, manually copy the CAB version to the Updates folder.
DISM /PackagePath can install multiple packages from the same folder. Adding /ignorecheck will bypass the eligibility checks, which is very slow for a monthly rollup. We need to force a reboot, since our DISM command skips restart. Drop that line at the very end (shutdown.exe
not shutdown).
@echo off
"%WINDIR%\Setup\Files\NDP48-x86-x64-AllOS-ENU.exe" /passive /norestart
"%WINDIR%\Setup\Files\NDP48-KB4532941-x64.exe" /quiet /norestart
wusa.exe "%WINDIR%\Setup\Files\Win7AndW2K8R2-KB3191566-x64.msu" /quiet /norestart
dism /Online /Add-Package /PackagePath:"%WINDIR%\Setup\Updates" /ignorecheck /norestart
rd /q /s "%WINDIR%\Setup\Files"
del /q /f "%0"
shutdown.exe /r /t 5
After reboot, confirm your updates list in this reverse order:
3552, 3229, 1566 (WMF), 9601 (last rollup), 6952 (last SSU), ..., 9215, ...