首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何为我的.inf创建windows安装包?

如何为我的.inf创建windows安装包?
EN

Stack Overflow用户
提问于 2014-07-07 01:26:05
回答 1查看 799关注 0票数 2

我已经完成了以下步骤: 1.构建并编译我的内核驱动程序,它模拟磁带设备驱动程序。2.创建了所需的.inf 3.创建了所需的.cat 4.对文件进行了签名5.通过手动“右键单击”->安装在资源管理器的.inf文件上进行了测试

现在我准备做一个更简单的安装包,但我不知道如何才能做到这一点?

我尝试创建目录C:\drivers,并在其中创建了包含以下内容的dpinst.xml文件:

代码语言:javascript
复制
    <?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致以最好的问候

EN

回答 1

Stack Overflow用户

发布于 2014-10-19 03:24:08

您可能希望尝试WDK8.1驱动程序示例中的WDF安装包示例。

示例说明:

installWdf演示了如何在系统上安装WDF包。此代码可以按原样使用,以将所需的WDF组件安装到用户系统上。还可以将示例代码修改为现有的安装应用程序,以提供更好的体验。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24598405

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档