Inno setup 将文本添加到';wpSelectTasksPage';在Inno设置中

Inno setup 将文本添加到';wpSelectTasksPage';在Inno设置中,inno-setup,Inno Setup,像我这样的朋友此脚本文本仅显示在“wpselectTasks”页面上 将wpSelectDir替换为wpSelectTasks Inno安装程序编译,但“wpselectTasks”页面上没有显示任何内容 使用wpSelectDir将是正常的 **(thus appears on the page wpSelectDir)** var avisoLabel: TLabel; procedure InitializeWizard(); var aviso: TLabel; begin a

像我这样的朋友此脚本文本仅显示在“wpselectTasks”页面上 将wpSelectDir替换为wpSelectTasks Inno安装程序编译,但“wpselectTasks”页面上没有显示任何内容 使用wpSelectDir将是正常的

**(thus appears on the page wpSelectDir)**
var
  avisoLabel: TLabel;
procedure InitializeWizard();
var
  aviso: TLabel;
begin

avisoLabel := TLabel.Create(WizardForm);
avisoLabel.Left := ScaleX(0);
avisoLabel.Top := ScaleY(190)
avisoLabel.Width := ScaleY(185)
avisoLabel.Height := ScaleY(13)
avisoLabel.Parent:= WizardForm.SelectDirPage;
avisoLabel.Transparent:=true;
avisoLabel.Caption := 'OBS: Sem estes programas instalados o jogo não inicia';
//avisoLabel.AutoSize := True;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
avisoLabel.Visible := CurPageID = wpSelectDir;
end;

**(modifying for wpSelectTasks nothing appears)**

var
  avisoLabel: TLabel;
procedure InitializeWizard();
var
aviso: TLabel;
begin

avisoLabel := TLabel.Create(WizardForm);
avisoLabel.Left := ScaleX(0);
avisoLabel.Top := ScaleY(190)
avisoLabel.Width := ScaleY(185)
avisoLabel.Height := ScaleY(13)
avisoLabel.Parent:= WizardForm.SelectTasksPage;
avisoLabel.Transparent:=true;
avisoLabel.Caption := 'OBS: Sem estes programas instalados o jogo não inicia';
//avisoLabel.AutoSize := True;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
avisoLabel.Visible := CurPageID = wpSelectTasks;
end;

试着从我们的角度回答你的问题。什么错误,何时何地?在编译时或运行时,在哪一行和何时显示什么错误消息?如果错误消息与编译器错误
[ISPP]未声明的标识符“Color”有关。
那么您只是缺少了
Color
变量的预处理器定义,类似于
\define Color“000080FF”
。感谢TLma修复了wpSelectTasks页面上没有出现脚本错误,甚至切换了wpSelectdir和WizardForm.SelectDirPage,以及切换到wpSelectTasks WizardForm.SelectTasks页面上出现的脚本错误。了解SelectDir页面。抱歉,我真的不知道您的脚本有什么问题(除了缺少定义,这会妨碍编译)。我想说的是,您正在尝试制作一个标签,它应该显示在
wpSelectDir
页面上,但这只是我的猜测。您能编辑您的问题并详细说明您的要求吗?