如何编写自定义操作来安装 UMDF 驱动程序?
我想安装 UMDF 软件,这是我们 MSI 中的唯一驱动程序,据我所知,要做到这一点,我需要创建一个根枚举设备,然后将驱动程序安装到驱动程序存储中。 我以前从未写过自定义操作。
有人以前做过并且可以获得一些代码吗?
I want to install a UMDF software, the only driver from our MSI, I understand that to do it, I need to create a root-enumerated device and then install the driver to driver store.
I have never written a custom action before.
Has anyone done it before and can get some code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请阅读 WiX 教程中的主题:
您可以还想阅读有关自定义操作的 MSDN 文档。
Read this topics in the WiX Tutorial:
You may also want to read MSDN documentation on Custom Actions.
除非必须,否则不建议编写您自己的自定义操作,因为您必须处理一些复杂的事情,例如回滚。
在这种情况下,我建议您查看 WDK 附带的 Difx 工具。
It's not recommended to write your own custom action unless you have to because you will have to take care some complex things such as rolling back.
In this case, I would suggest you take a look at the Difx tool shipped with the WDK.