我已经完成了以下步骤: 1.构建并编译我的内核驱动程序,它模拟磁带设备驱动程序。2.创建了所需的.inf 3.创建了所需的.cat 4.对文件进行了签名5.通过手动“右键单击”->安装在资源管理器的.inf文件上进行了测试
现在我准备做一个更简单的安装包,但我不知道如何才能做到这一点?
我尝试创建目录C:\drivers,并在其中创建了包含以下内容的dpinst.xml文件:
<?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>并复制了dpinst.exe并创建了一个子目录"storage“,我将.inf、.cat和.sys文件复制到这个目录中
当我试图通过双击此目录中的dpinst.exe进行安装时,出现消息"no need (No device for update )“
但这不是一个PnP设备驱动程序吗?它是KMDF (内核设备驱动程序)?
有谁知道如何创建一个安装包?
向Tomas致以最好的问候
发布于 2014-10-19 03:24:08
您可能希望尝试WDK8.1驱动程序示例中的WDF安装包示例。
示例说明:
installWdf演示了如何在系统上安装WDF包。此代码可以按原样使用,以将所需的WDF组件安装到用户系统上。还可以将示例代码修改为现有的安装应用程序,以提供更好的体验。
https://stackoverflow.com/questions/24598405
复制相似问题