如何检测 WiX 中正在运行的进程?

发布于 2024-08-02 18:50:54 字数 188 浏览 4 评论 0原文

我正在使用 WiX 3 构建安装文件。我想知道安装过程中 Outlook 是否正在运行。如果 Outlook 仍在运行,安装程序应通知用户将其关闭或必须在安装后重新启动。

我注意到有一个功能 util:CloseApplication 可以直接发送消息关闭 Outlook,但这不是很友好。我想知道在这种情况下是否可以调用FileInUse对话框?

I'm using WiX 3 to build a setup file. I would like to know whether Outlook is running during the installation. If Outlook is still running, the setup should notify the users to close it or have to reboot after the installation.

I noticed that there is a feature util:CloseApplication can send a message to close Outlook directly, but that's not very friendly. I would like to know whether the FileInUse dialog can be called in such situation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文