繁体   English   中英

动态禁用欢迎页面

[英]Dynamically Disable Welcome Page

我正在尝试动态禁用欢迎页面:这是我尝试过的其他选项

[SETUP]
DisableWelcomePage={code:ShouldSkipAutorun}
...
[CODE]
function ShouldSkipAutorun(Default: string):boolean;
begin
  ...
// will return true or false on whether to disable it or not
end;

错误:“ [设置]节指令“ DisableWelcomePage”的值无效”

接下来我尝试使用shouldskippage,但是文档说

不为wpWelcome,wpPreparing和wpInstalling页面调用此事件函数,也不应该跳过安装程序已确定的页面(例如,不包含任何组件的安装中的wpSelectComponents

有什么帮助吗?

在inno中使用ShouldSkipPage函数。

在[设置]部分中将DisableWelcomePage默认值设置为no

[Setup]
DisableWelcomePage=no

如下修改您的[代码]部分

[CODE]
function ShouldSkipAutorun():boolean;
begin
  Result:=/** add you result here (TRUE or FALSE) **/;
end;

function ShouldSkipPage(PageID: Integer): Boolean;
begin
  Result := False;    
  if PageID = wpWelcome then
  begin
    Result := ShouldSkipAutorun;
  end;
end;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM