如何在 MSI 安装完成后运行脚本?使用 VS2010 创建的 MSI +设置向导
目标: 我有 MyAPP.exe(在 VS2010 中构建)& MyDriver.sys(使用VS2010 + WinDDK构建)
我想做的:是创建一个安装向导项目,它可以运行安装后操作,例如,我需要安装驱动程序安装成功完成后,如下所示:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\MyDriver.inf
换句话说,我需要运行 CMD 脚本文件(预安装或端口安装,顺序不是真正的问题),与我的 MSI 包同时运行。
对我来说有什么解决办法吗?
谢谢你!
附言。是的,我已经阅读了一些主题,例如 链接 1、链接 2 等,但在我看来它们太“重”了。也许存在一些更简单的解决方案?
Targets: I have MyAPP.exe (build in VS2010) & MyDriver.sys (build with VS2010 + WinDDK)
What I'm trying to do: is to create a Setup Wizard project, which can run post-install action, for example, I need to install the driver after installation succesfully completed like this:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 .\MyDriver.inf
Another words, I need to run CMD script file (pre or port install, the order not is the real problem), with my MSI package simultaneously.
Is there any solution for me?
Thank you!
PS. Yes, I had already read some topics, like link 1, link 2 and others, but they seems to me too "heavy". Maybe some more easy solution exists?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那么你应该考虑编写自己的安装程序类。
也许这个教程对您有帮助。
Then you should consider to write your own installer class.
Maybe this tutorial helps you.