如何根据 InnoSetup 中的用户选择遵循不同的路径?

发布于 2024-09-15 06:27:18 字数 166 浏览 4 评论 0原文

我想使用 Inno Setup 显示多个向导页面。但在某些时候,根据用户的任务选择,我想切换到另一个页面,不一定是下一个页面。是否可以在 Inno Setup pascal 脚本中“跳转到另一页”。我没有找到相关的功能。

作为最后的手段,我计划将 ShouldSkipPage() 与状态变量一起使用。

I want to display several wizard pages using Inno Setup. But at some point, depending on the users task choice, I want to switch to another page, not necessarily the next page. Is it possible to "jump to another page" in Inno Setup pascal scripting. I couldn't find a related function.

As a last resort, I'm planning to use ShouldSkipPage() with a state variable.

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

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

发布评论

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

评论(1

昵称有卵用 2024-09-22 06:27:18

您必须使用ShouldSkipPage()。没有其他办法存在。

但要小心。来自 Inno-setup 文档:

注意:该事件函数未被调用
对于 wpWelcome、wpPreparing 和
wpInstalling 页面,也不适用于以下页面
设置已经确定应该是
跳过(例如,
安装中的 wpSelectComponents
不含任何组件)。

You must use ShouldSkipPage(). No other way exists.

But be attentive. From Inno-setup documentation:

Note: This event function isn't called
for the wpWelcome, wpPreparing, and
wpInstalling pages, nor for pages that
Setup has already determined should be
skipped (for example,
wpSelectComponents in an install
containing no components).

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