【发布时间】:2019-11-06 15:03:04
【问题描述】:
参考问题Basic or Advanced installation mode choice to skip or use advanced options pages,我现在需要跳过准备安装向导页面。
在我的情况下,显示此页面是因为一个或多个程序正在使用需要由安装程序替换的文件;因此安装程序会询问用户是否希望安装程序自动关闭应用程序并在安装结束时重新启动。
我需要在基本模式下在设置过程中隐藏此页面,并且如果使用了某些文件,设置会自动关闭使用它们的应用程序,而无需向用户询问任何内容。
我尝试将ShouldSkipPage 编辑为:
function ShouldSkipPage(PageID: Integer): Boolean;
begin
{ If "Basic" mode is selected, skip Directory and Components pages }
Result :=
ModePage.Values[0] and
((PageID = wpSelectDir) or (PageID = wpSelectComponents) or (PageID = wpReady) or (PageID = wpPreparing));
end;
添加(PageID = wpPreparing),但页面仍以基本模式显示。
有没有办法使用 Inno Setup 来实现这一点?
【问题讨论】:
标签: installation inno-setup pascalscript