[Solved] Error in Windows 7 Setup after integrating updates and drivers in boot.wim

AeonX

Well-Known Member
I integrated KB2864202 (Kernel Mode Driver Framework), KB2990941 and KB3087873 (NVMe support) and a generic usb 3.0 driver (USB 3/XHCI driver stack for Windows 7) into boot.wim and I get this error in VMware:

Win7_x64-2022-09-16-01-21-19.png

I think this is a typical error that occurs when the ISO file \sources\setup.exe is different from the \sources\setup.exe file in index 2 of boot.wim.

So I opened index 2 of boot.wim with 7-Zip and saw that several files there had been modified, including setup.exe.

2022-09-16 03_16_24.png

Why is NTLite modifying all these files?

PS: I forgot to mention that I tested the latest version of NTLite (version 2.3.8.8890), version 2.3.7.8850 and version 2.3.5.8714 (the oldest version I have backup) and I get the same result.
 
Last edited:
I realized that it is not a good idea to keep the original ISO files when they are not .dll or .exe as there are some files in boot.wim that are newer.

2022-09-26 21_47_40-sources.png

So better keep it as is or compare the timestamps.

I've seen that the WHD-W7UI script by abbodi86 simply copies the entire contents of boot.wim to the ISO and deletes some files that didn't exist in the ISO previously. So I think the current implementation won't cause any problems.

Code:
:boots
xcopy /CDRY "!mountdir!\sources" "!target!\sources\" %_Nul3%
del /f /q "!target!\sources\background.bmp" %_Nul3%
del /f /q "!target!\sources\testplugin.dll" %_Nul3%
copy /y "!mountdir!\Windows\Boot\PCAT\bootmgr" "!target!\" %_Nul1%
copy /y "!mountdir!\Windows\Boot\PCAT\memtest.exe" "!target!\boot\" %_Nul1%
if exist "!target!\setup.exe" copy /y "!mountdir!\setup.exe" "!target!\" %_Nul3%
goto :eof

I will mark the topic as solved.

EDIT:
An addendum. The /D switch of the xcopy command indicates that only files with the newest timestamp will be copied to the ISO.

/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
 
Last edited:
Back
Top