从 MSI 安装脚本 C# 运行 EXE
大家好 我如何在 MSI 执行并成功安装后立即运行 EXE 文件。 一直在寻找 MSI 的 postbuildevent,但它似乎不起作用。尝试仅输入完整路径和文件名,但没有成功
Hi all
How do i run a EXE file straight after my MSI has executed and successfully installed.
Have been looking the the postbuildevent with the MSI but it does't seem to work. Tried just putting in the full path and filemame, without much success
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设 exe 是解决方案中由 MSI 构建的项目之一的主要输出,您应该能够在安装后事件中通过从该项目中选择“主要输出”来执行此操作。 (如果我能找到它,链接将附有说明。)
编辑
我确实找到了这个先前提出的问题,它提供了在构建后事件中执行 iut 的解决方法:VS .Net:“来自的主要输出”的发布生成事件;”在安装程序项目 中
,我在这里找到了我最初寻找的说明:http://support .microsoft.com/kb/827018
Assuming that the exe is the primary output from one of the projects in your solution that is being built by the MSI, you should be able to do this in the Post Install Event by selecting the "Primary output" from that project. (Link coming with instructions if I can find it.)
Edit
I did find this previously asked question that gives a workaround for doing iut in the post-build event: VS .Net: Post build events for "Primary Output from <myProject>" in installer project
And I found the instructions I was looking for originally here: http://support.microsoft.com/kb/827018