如何将 INF 驱动程序安装包含到 VS Installer 项目中
我使用 Visual Studio 2008 中的安装和部署项目来安装我的 C# 项目。
我有一个 USB 驱动程序,可以通过右键单击 .inf 文件并选择“安装”来手动安装。
我认为如果我有一个 .exe 来安装驱动程序,我可能可以将其放在自定义操作下。我什至不知道从哪里开始制作我自己的 .exe,更不用说它是否有效了。
我在这方面还很陌生,我自学了 C#,并通过反复试验学会了如何制作安装程序。我通常使用值得信赖的谷歌或这个论坛来获取信息,但这次我自己找不到信息。
请帮助或指出我正确的方向!
I use a Setup and Deploy project in Visual Studio 2008 to install my c# project.
I have a USB driver that i can manually install by right clicking the .inf file and choosing Install.
I think that if i had a .exe to install the driver, i could probably put it under Custom Actions. I'm not even sure where to start to make my own .exe, let alone if it would work.
I'm fairly new at this, having taught myself C# and learned how to make an installer through trial and error. I usually get by using trusty Google or this forum but i have trouble finding the information on my own this time.
Please help or point me in the right direction!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用自定义操作中的运行 devcon.exe 在安装中执行。
以下是一些示例代码 Windows 设备驱动程序工具包演示了 devcon.exe 的 API...但使用命令行功能可能更容易。
You can use run devcon.exe from a custom action to perform in the installation.
Here is some sample code from the Windows Device Driver Kit demonstrating devcon.exe's APIs... but it's probably easier to use the command-line functions.
我正在研究与您完全相同的问题。请看我的帖子:
http://social .msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/89c996c4-881b-47f0-815d-cf14135daf88/
一旦我的工作正常,我会立即通知您。您工作后请尽快通知我。
谢谢,
特拉米
I am working on exactly the same problem that you are working on. Please see my post:
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/89c996c4-881b-47f0-815d-cf14135daf88/
I will let you know as soon as mine working. Please let me know as soon as yours working.
Thanks,
Trammy