安装成功后如何执行文件?
安装成功后如何执行外部文件?它位于 Windows\System32
文件夹中。 安装程序
不应等待执行完成。
How can I execute external file after a successful installation? It's located in the Windows\System32
folder. Installer
should not wait for execution finish.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看 WiX 教程的 干得好 部分,它解释了如何添加成功安装后启动应用程序的复选框。
Check out Well Done section of the WiX Tutorial, it explains how to add Checkbox to launch application after successful installation.
您可以定义一个自定义操作来描述您希望执行的应用程序,如下所示:
然后您可以使用以下命令将其绑定到您的安装执行序列中:
You can define a custom action that describes the application you wish to execute as follows:
You can then tie this into your installation execute sequence using the following:
要在用户单击“安装成功”对话框上的完成按钮时启动应用程序,可以使用以下代码(其中
LaunchOnExit.exe
指的是您安装的已安装文件的 ID)想要启动)如果您想在静默安装或 MSI 推出期间启动应用程序,请参阅 @Naishy 的答案。
To launch an application when the user clicks the Finish button on "Installation Successful" dialog, the following code will work (Where
LaunchOnExit.exe
refers to ID of installed file that you want to launch)If you're wanting to launch an application even during a silent installation or MSI rollout, refer @Naishy's answer.