Build ISO with nLite
WinXP64 ISO and updates
en_win_xp_pro_x64_with_sp2_vl_x13-41611.iso
5eraph_Windows_XP_x64_Post-SP2_UpdatePack_ENU_v2019-08.7z; https://www.mediafire.com/folder/x6qqeye5y0a0x/x64
WinXP ISO and updates
en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso
XPSP3_QFE_UpdatePack_20210829_Pro.7z; https://www.4shared.com/web/directDownload/0t47E_Vhea/B8-gUmU2.8a5c8b6a84dcde59d76300e08ab95fac
XPSP3_QFE_POSReady_Addon_20200528_5er.7z; https://www.4shared.com/web/directDownload/pCl2jGEqea/B8-gUmU2.7befe8c26d0ff79f226742fccad3d4c3
Note: order matters, in nlite have the UpdatePack run first, then the POSReady updates
Note2: in POSReady updates, entries_POSUpdates.ini has a bug with nlite, you will need to comment out these lines
;Prevents Windows Setup copying drivers from driver.cab that the integrator failed to update
;drvindex.inf|ks.sys||2
;drvindex.inf|termdd.sys||1
;drvindex.inf|hsf_fs|hsf_fsks.sys|1
Compile NTOSKRNL_Emu; https://github.com/MovAX0xDEAD/NTOSKRNL_Emu
Backport drivers/ create whatever patch files from above.
Install nLite 1.4.9.3
extract Windows ISO to folder
run nlite, customize as you want, make sure to import the update packs
once you get to the create ISO stage stop
==============ACPI/NTOSKRNL/STORPORT/WIN8AHCI/WIN7NVME/WIN8USB3========================
open nlited ISO folder and extract SP3.cab (XP), SP2.cab (XP64) to a folder
replace acpi.sys, add storport.sys, storpor8.sys, ntoskrn8.sys to folder
use CabPack1.4 to recreate SP#.cab and replace cab file from ISO folder
replace ACPI.SY_, add STORPORT.SY_, STORPOR8.SY_, NTOSKRN8.SY_ to I386 (XP), AMD64 (XP64) folder
use cabsdk to compress eg: "CABARC -m LZX:21 N ACPI.SY_ ACPI.SYS"
------------------------------------------------
(I386 folder for XP) (AMD64 folder for XP64)
in DOSNET.INF add (x64 already has a storport.sys line)
Quote
[FloppyFiles.1]
d1,ntoskrn8.sys
d1,storpor8.sys
d1,storport.sys
d1,storahci.sys
d1,stornvme.sys
[Files]
d1,ntoskrn8.sys
d1,storpor8.sys
d1,storport.sys
d1,storahci.inf
d1,storahci.sys
d1,stornvme.inf
d1,stornvme.sys
d1,wdf01011.inf
d1,wdf01000.sys
d1,wdfldr.sys
d1,ksecd8.sys
d1,ucx01000.sys
d1,usb8.sys
d1,usbhub3.inf
d1,usbhub3.sys
d1,usbxhci.inf
d1,usbxhci.sys
d1,wpprecor.sys
[FloppyFiles.2]
d1,ksecd8.sys
d1,ucx01000.sys
d1,usb8.sys
d1,usbhub3.sys
d1,usbxhci.sys
d1,wpprecor.sys
in TXTSETUP.SIF add (x64 already has a storport.sys line)
Quote
[SourceDisksFiles]
storport.sys = 1,,,,,,3_,4,0,0,,1,4
usbd.sys = 1,,,,,,4_,4,0,0,,1,4 ;force load for mb that has xhci only
wdf01011.inf = 1,,,,,,,20,0,0
[SourceDisksFiles.amd64] OR [SourceDisksFiles.x86]
ntoskrn8.sys = 1,,,,,,3,4,0,0,,1,4
storpor8.sys = 1,,,,,,3,4,0,0,,1,4
storahci.inf = 1,,,,,,,20,0,0
storahci.sys = 1,,,,,,3_,4,0,0,,1,4
stornvme.inf = 1,,,,,,,20,0,0
stornvme.sys = 1,,,,,,3_,4,0,0,,1,4
wdf01000.sys = 100,,,,,,3_,4,0,0,,1,4
wdfldr.sys = 100,,,,,,3_,4,0,0,,1,4
ksecd8.sys = 1,,,,,,4_,4,0,0,,1,4
ucx01000.sys = 1,,,,,,4_,4,0,0,,1,4
usb8.sys = 1,,,,,,4_,4,0,0,,1,4
usbhub3.inf = 1,,,,,,,20,0,0
usbhub3.sys = 1,,,,,,4_,4,0,0,,1,4
usbxhci.inf = 1,,,,,,,20,0,0
usbxhci.sys = 1,,,,,,4_,4,0,0,,1,4
wpprecor.sys = 1,,,,,,4_,4,0,0,,1,4
[HardwareIdsDatabase]
PCI\CC_010601 = "storahci"
PCI\CC_010802 = "stornvme"
USB\USB20_HUB = "usbhub3"
USB\USB30_HUB = "usbhub3"
USB\ROOT_HUB30 = "usbhub3"
PCI\CC_0C0330 = "usbxhci"
[SCSI.Load]
storahci = storahci.sys,4
stornvme = stornvme.sys,4
usbxhci = usbxhci.sys,4
usbhub3 = usbhub3.sys,4
[SCSI]
storahci = "Standard SATA AHCI Controller"
stornvme = "Standard NVM Express Controller"
usbhub3 = "USB 3.X Hub Driver"
usbxhci = "USB 3.X Host Controller"
[FileFlags]
ntoskrn8.sys = 16
storpor8.sys = 16
storport.sys = 16
storahci.sys =16
stornvme.sys =16
wdf01000.sys =16
wdfldr.sys =16
wpprecor.sys =16
usbxhci.sys =16
usbhub3.sys =16
usb8.sys =16
ucx01000.sys =16
ksecd8.sys =16
[BootBusExtenders.Load]
wdf01000 = wdf01000.sys
[BusExtenders.Load]
ucx01000 = ucx01000.sys
[InputDevicesSupport.Load]
usbxhci = usbxhci.sys
usbhub3 = usbhub3.sys
[InputDevicesSupport]
usbhub3 = "USB 3.X Hub Driver",files.usbhub3,usbhub3
usbxhci = "USB 3.X Host Controller",files.usbxhci,usbxhci
[files.usbxhci]
hid.dll,2
hidclass.sys,4
hidparse.sys,4
usb8.sys,4
usbport.sys,4
usbxhci.sys,4
wdfldr.sys,4
[files.usbhub3]
usbhub3.sys,4
usb8.sys,4
ksecd8.sys,4
wdfldr.sys,4
[files.ucx01000]
ucx01000.sys,4
wpprecor.sys,4
wdfldr.sys,4
[files.wdf01000]
wdf01000.sys,4
wdfldr.sys,4
[BootBusExtenders]
wdf01000 = "Kernel-Mode Driver Framework 1.11",files.wdf01000,wdf01000
[BusExtenders]
ucx01000 = "USB 3.0 Controller Extension",files.ucx01000,ucx01000
in HIVESYS.INF add
Quote
[AddReg]
HKLM,"SYSTEM\CurrentControlSet\Services\storahci\Parameters\PnpInterface","5",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\storahci\Parameters","BusType",0x00010001,"b"
HKLM,"SYSTEM\CurrentControlSet\Services\storahci\Parameters","IoTimeoutValue",0x00010001,"0x0000001e"
HKLM,"SYSTEM\CurrentControlSet\Services\stornvme\Parameters\PnpInterface","5",0x00010003,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\stornvme\Parameters","BusType",0x00010001,"0x00000011"
HKLM,"SYSTEM\CurrentControlSet\Services\stornvme\Parameters","IoTimeoutValue",0x00010001,"a"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\Setup","X1-WDF01011_INSTALL",0x00000000,"RunDll32.exe SetupAPI.dll,InstallHinfSection PostSetup 132 wdf01011.inf"
HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Type",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Start",0x00010003,"0"
HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","ImagePath",0x00020000,"system32\drivers\wdf01000.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","Group",0x00000000,"Boot Bus Extender"
HKLM,"SYSTEM\CurrentControlSet\Services\Wdf01000","ErrorControl",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\USBXHCI","Type",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\USBXHCI","Start",0x00010003,"0"
HKLM,"SYSTEM\CurrentControlSet\Services\USBXHCI","ImagePath",0x00020000,"system32\drivers\usbxhci.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\USBXHCI","Group",0x00000000,"Input Device Support"
HKLM,"SYSTEM\CurrentControlSet\Services\USBXHCI","ErrorControl",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\USBHUB3","Type",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\USBHUB3","Start",0x00010003,"0"
HKLM,"SYSTEM\CurrentControlSet\Services\USBHUB3","ImagePath",0x00020000,"system32\drivers\usbhub3.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\USBHUB3","Group",0x00000000,"Input Device Support"
HKLM,"SYSTEM\CurrentControlSet\Services\USBHUB3","ErrorControl",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\Ucx01000","Type",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Services\Ucx01000","Start",0x00010003,"0"
HKLM,"SYSTEM\CurrentControlSet\Services\Ucx01000","ImagePath",0x00020000,"system32\drivers\ucx01000.sys"
HKLM,"SYSTEM\CurrentControlSet\Services\Ucx01000","Group",0x00000000,"System Bus Extender"
HKLM,"SYSTEM\CurrentControlSet\Services\Ucx01000","ErrorControl",0x00010001,"1"
HKLM,"SYSTEM\CurrentControlSet\Control\Wdf\Kmdf\Ucx\Versions\1\1","Service",0x00000000,"ucx01000"
for SETUPREG.HIV use offlinereg-win32.exe by Erwan to add
Quote
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Kmdf\1" setvalue "Version" "1.11" 1
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Kmdf\KmdfLibrary\Versions\1" setvalue "Service" "Wdf01000" 1
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Kmdf\Ucx\Versions\1\1" setvalue "Service" "ucx01000" 1
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Schema\KmdfService" setvalue "Type" "0" 4
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Schema\KmdfService\Object" setvalue "KeyPath" "CurrentControlSet\Services" 1
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Control\Wdf\Schema\KmdfService\Object" setvalue "KeyRoot" "SYSTEM" 1
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Services\Wdf01000\Parameters" setvalue "BuildNumber" "0" 4
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Services\Wdf01000\Parameters" setvalue "MajorVersion" "1" 4
offlinereg-win32.exe SETUPREG.HIV "ControlSet001\Services\Wdf01000\Parameters" setvalue "MinorVersion" "11" 4
REPLACE
Quote
in storahci.inf
[SourceDisksNames]
1 = %DiskId%,,,"\AMD64" OR 1 = %DiskId%,,,"\I386"
in stornvme.inf
[SourceDisksNames]
1 = %DiskId%,,,"\AMD64" OR 1 = %DiskId%,,,"\I386"
in wdf01011.inf
[SourceDisksNames]
1 = "Kernel-Mode Driver Framework 1.11",,,"\AMD64" OR 1 = "Kernel-Mode Driver Framework 1.11",,,"\I386"
in usbxhci.inf
[SourceDisksNames]
1="Generic USB xHCI Host Controller",,,"\AMD64" OR 1="Generic USB xHCI Host Controller",,,"\I386"
in usbhub3.inf
[SourceDisksNames]
1="Generic USB Hub Driver",,,"\AMD64" OR 1="Generic USB Hub Driver",,,"\I386"
copy to AMD64 folder or I386 folder
Quote
storahci.inf
storahci.sys
stornvme.inf
stornvme.sys
wdf01011.inf
wdf01000.sys
wdfldr.sys
ksecd8.sys
ucx01000.sys
usb8.sys
usbhub3.inf
usbhub3.sys
usbxhci.inf
usbxhci.sys
wpprecor.sys
=================================================================
=================Other Patches=====================================
replace SHELL32.DL_ patched version to AMD64 or I386 folder
replace TCPIP.DL_ and TCPIP6.DL_ patched version to AMD64 or I386 folder
for x86 replace sndrec32,disk,partmgr, and other files from AVX/PAE patch to the I386 folder or the SP#.cab as needed
etc...
=================Make ISO======================================
make ISO in nLite and test.