[英]How to follow different paths depending on user choices in InnoSetup?
I want to display several wizard pages using Inno Setup. 我想使用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. 是否可以在Inno Setup pascal脚本中“跳转到另一页”。 I couldn't find a related function. 我找不到相关功能。
As a last resort, I'm planning to use ShouldSkipPage() with a state variable. 作为最后的手段,我计划将ShouldSkipPage()与状态变量一起使用。
You must use ShouldSkipPage (). 您必须使用ShouldSkipPage ()。 No other way exists. 没有其他办法了。
But be attentive. 但是要注意。 From Inno-setup documentation: 从Inno-setup文档中:
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). 注意:不为wpWelcome,wpPreparing和wpInstalling页面调用此事件函数,也不应为安装程序已确定的页面跳过(例如,不包含任何组件的安装中的wpSelectComponents)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.