- 在 WDK 里 DIFx 目录下找到 DpInst.exe
- 创建目录
C:\drivers
拷贝 Dpinst.exe 到此目录 - 创建
dpinst.xml
控制 Dpinst
All possible settings can be found here: http://msdn.microsoft.com/en-us/library/ms791067.aspx
An example can look like this:
<?xml version="1.0" ?>
<dpinst>
<suppressAddRemovePrograms/>
<!-- The following search and subDirectory elements direct
DPInst to search all subdirectories (under the DPInst working directory) to locate driver
packages. -->
<search>
<subDirectory>*</subDirectory>
</search>
<!-- The following language element localizes its child elements
for the English (Standard) language. The child elements
customize the text that appears on the DPInst wizard pages. -->
<language code="0x0409">
<dpinstTitle>Device Driver Updater</dpinstTitle>
<welcomeTitle>Welcome to the Device Installer!</welcomeTitle>
<welcomeIntro>This wizard will walk you through updating the drivers for your device.</welcomeIntro>
<installHeaderTitle>Installing the software for your device...</installHeaderTitle>
<finishTitle>Congratulations! You finished installing your device drivers.</finishTitle>
</language>
<scanHardware/>
</dpinst>
-
Create sub directories for drivers and place the driver files (.inf, .sys, cat, .dll, etc.) into these directories. My example looks like this:
-
Copy the complete directory to an external storage drive or network location and execute DPInst.exe to install / update the drivers on that machine. This dialogue will be displayed and pressing “Next” will start the installation…
Done.