DpInst.exe 安装驱动

  1. 在 WDK 里 DIFx 目录下找到 DpInst.exe
  2. 创建目录 C:\drivers 拷贝 Dpinst.exe 到此目录
  3. 创建 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>

  1. Create sub directories for drivers and place the driver files (.inf, .sys, cat, .dll, etc.) into these directories. My example looks like this:

  2. 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.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容