Windows 示例驱动程序可以正确构建,但无法安装,
我不知道这是否是正确的提问地点,因为它在技术上不是一个编程问题,但它涉及驱动程序开发,因此无论如何:
对于学校作业,我必须查看 WDF 示例驱动程序的代码。 (并稍微改变一下)所以我下载了 Windows 驱动程序工具包,并尝试构建一个示例驱动程序。 (Ramdisk 示例驱动程序)
构建进展顺利,但是当我尝试使用添加新硬件向导安装它时,安装失败。向导告诉我“找不到指定的文件”。我尝试了其他示例驱动程序,在不同的机器上尝试过,等等,...它总是给出相同的错误。 (我完全按照文档进行构建和安装)
I don't know if this is the right place to ask, since its technically not a programming question, but it conecerns driver development so anyway:
For a school assignment I have to take a look at the code of a WDF sample driver. (And change it a little bit) So I downloaded the Windows Driver Kit, and tried to build an example driver. (Ramdisk sample driver)
The build goes fine, but when I try to install it using the add new hardware wizard it fails while installing. The wizard tells me it "cannot find the file specified". I tried other example drivers, tried on different machines, etc,... It always gives the same error. (I followed the documentation exactly for building and installation)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了。当我使用“DEVCON.EXE INSTALL ramdisk.inf ramdisk”安装时,它会生成一个日志文件 @ %windir%\inf\setupapi.dev.log ,我发现它缺少 WdfCoInstaller01009.dll。只需从 DDK 的 redist 文件夹中复制它即可安装正常。
I found it. When I installed using "DEVCON.EXE INSTALL ramdisk.inf ramdisk" it generates a log file @ %windir%\inf\setupapi.dev.log There I found that it was missing the WdfCoInstaller01009.dll. Just copied that from the redist folder of the DDK and it installed fine.