如何在 EXEC() 函数期间显示请等待对话框

发布于 2024-09-17 05:09:04 字数 42 浏览 3 评论 0原文

如何在 EXEC() 以静默方式运行另一个应用程序时显示请等待对话框。

how to display please wait dialog while EXEC() runs another application silently.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柒夜笙歌凉 2024-09-24 05:09:04

您可以使用 ProgressOutputWizardPage,它对我来说效果很好,而且并不复杂。您可以参考CodeDlg.iss示例。

You can use a ProgressOutputWizardPage, which works just fine for me, which isn't exactly complicated. You can refer to the CodeDlg.iss example.

朱染 2024-09-24 05:09:04

您真的需要它作为消息框吗?您可能知道,您可以在安装过程中运行外部 *.exe,并同时显示自定义状态消息。 (安装过程中状态消息将显示在通常的进度标签上。)

我有一个安装产品 A 的 setup.exe。此 setup.exe 包含一个 setup2.exe 文件,用于安装产品 B。setup.exe 复制 setup2.exe在安装产品 A 期间复制到 Program Files 文件夹。复制所有文件后,setup.exe 将在后台启动 setup2.exe。为了实现这一点,我在 setup.iss 中完成了操作

[Run]
Filename: "{app}\setup2.exe"; StatusMSG: "Installing Product 2..."; Parameters: "/VERYSILENT /SUPPRESSMSGBOXES"

(编译为 setup.exe)。 setup2.exe 也是一个 Inno Setup 安装程序,因此参数“/VERYSILENT /SUPPRESSMSGBOXES”将使产品 2 的安装静默。在此安装过程中,setup.exe 将显示消息“正在安装产品 2...”。

如果您确实需要弹出一个包含状态消息的消息框,则必须求助于 Pascal 脚本。

Do you really need it to be a message box? As you might know, you can run an external *.exe during setup, and have a custom status message shown meanwhile. (The status message will be on the usual progress label during installation.)

I have a setup.exe that installs product A. This setup.exe contains a setup2.exe file, used to setup product B. setup.exe copies setup2.exe to the Program Files folder during the installation of product A. When all files have been copied, setup.exe then starts setup2.exe in the background. To accomplish this, i have done

[Run]
Filename: "{app}\setup2.exe"; StatusMSG: "Installing Product 2..."; Parameters: "/VERYSILENT /SUPPRESSMSGBOXES"

in setup.iss (that compiles to setup.exe). setup2.exe is also an Inno Setup installer, so the parameters "/VERYSILENT /SUPPRESSMSGBOXES" will make the installation of product 2 silent. During this setup, setup.exe will show the message "Installing Product 2...".

If you really need a message box to popup with the status message, you'll have to resort to Pascal scripting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文