|
本帖最后由 slore 于 2019-11-9 23:41 编辑
AddDrivers macro is a macro help you to extract system's driver files from install.wim.
For custom drivers, I don't have time to desgin it.
Here is two way on my mind, you can try it:
Way 1:
Just copy your drivers to
Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\PEMaterial\MyDrivers\x64\
and add next InstallMyDrivers.bat to Startup\BeforeShell, or Startup\
- pnputil.exe /add-driver X:\PEMaterial\Drivers\x64\*.inf /subdirs
- set RUNONCE=1
复制代码
Way 2:
Just copy your drivers to:
Z:\WimBuilder2\Projects\WIN10XPE\01-Drivers\10-CustomDrivers\
and add main.bat:
rem for all *.inf
Dism /Image:"%_WB_MNT_PATH%" /Add-Driver /Driver:"%~dp0" /Recurse
rem for specify xxx.inf
rem Dism /Image:"%_WB_MNT_PATH%" /Add-Driver /Driver:"%~dp0oem.inf"
|
|
|