简体   繁体   English

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

[英]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.

相关问题 InnoSetup - 如何要求用户键入许可证密钥或产品密钥并将该代码与编译常量匹配? - InnoSetup - how to ask user to type license key or product key and match that code with compiled constant? 如何使InnoSetup删除除当前用户以外的所有人的文件夹权限? - How do I make InnoSetup remove permissions on a folder for everyone but the current user? InnoSetup:根据安装程序中的值在Common / User Desktop中生成图标 - InnoSetup: Generate Icons in Common/User Desktop based on values inside Installer 如何在InstallAnywhere安装过程中删除InnoSetup安装? - How to remove InnoSetup Installation on InstallAnywhere Install Process? 如何强制InnoSetup创建卸载日志文件 - How to force InnoSetup to create an uninstall log file 如何更改InnoSetup中的安装目标文件夹权限? - How to change install destination folder permisions in InnoSetup? Innosetup - 指定/ silent等时显示的用户CreateInputOptionPage“向导”页面? - Innosetup - are user CreateInputOptionPage “wizard” pages shown when /silent, etc is specified? 如何摆脱烦人的InnoSetup文件夹选择机制? - How to get rid of annoying InnoSetup folder selection mechanism? 如何从PascalScript代码更新InnoSetup向导GUI状态文本 - How to update the InnoSetup Wizard GUI status text from PascalScript code 如何在InnoSetup中将.NET程序集添加到GAC? - How do I add a .NET assembly to the GAC in InnoSetup?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM