Sorry for the late reply...I was busy with other burning issues, wanna give this another go...these registry keys "work" but seem to integrate all the drivers from the "Drivers" directory...so maybe want know are these registry settings added under the install.wim or boot.wim locations within NTlite?
There are several places to inject a driver search path during install:
- From WinPE, using the unattended file's <DriverPaths>
- From the audit phase, using the unattended file's <DriverPaths>
- Integrating the same reg values into the boot.wim or install.wim
What's the primary difference between driver search during boot or install WIM? Do you need boot-critical (SATA, NVME, USB, networking) drivers loaded in order for the Windows install to work?
Another test I did was clean vanilla Windows install with no driver integration and my Windows directory was ~8GB...after using Device Manager and installing the drivers from the Dell driver pack this directory increased to ~17GB...and this is only drivers for this Dell device, I can live with the 17GB Windows drive size...however not with a massive Windows directory because I integrated drivers via NTlite....my Dell model range is too different to create a USB for each.
It's been discussed many times before, but when you integrate drivers into an image – each INF instance gets its own DriverStore folder and a separate copy of the included DLL files. So if you have a driver family (with many INF files), then those DLL's are duplicated several times since each INF file creates a standalone instance.
With a driver search path, you're technically not integrating drivers into an image.
I noticed Windows Deployment Service works 100% fine...no severely inflated Windows directory...would love to know how they do this and where the settings are made, I am sure NTLite attaches to the same entry points.
WDS is a network-based install service, it keeps drivers on a network share and just inserts a task to scan for drivers. NTLite is mostly designed to work with ISO-based images, so WDS will use the same WIM files but replaces the ISO instance with a set of folder shares.
Another approach I was playing with is splitting my usb into a boot image location and a separate Drivers partition on the same USB, so I don't need to re-copy all the drivers every time I rufus the USB.
That's my approach. Copy your drivers to a top-level USB folder, and have the image just do a simple path search of possible media drive letters. Since you can't be guaranteed the USB's drive letter, a short list of drive paths is all you need.
Then your driver packs can be updated independently of the install images. Your biggest problem is when there are duplicate drivers (based on matching HWID's), one driver will always win – but it might not be the one you expected.