【问题标题】:Inno Setup: How to display license page before custom page shows from procedure InitializeWizard();Inno Setup:如何在从过程 InitializeWizard() 显示自定义页面之前显示许可证页面;
【发布时间】:2018-07-10 10:12:27
【问题描述】:

我正在使用LicenseFile=D:\authorized\Builds\Integration\License.rtf 显示许可证页面和程序InitializeWizard();

问题是在程序InitializeWizard();之后显示了许可页面。有什么方法可以在之前显示它?

procedure InitializeWizard;
begin
  { Create the pages }
    UsagePage := CreateInputOptionPage(wpWelcome,
    'App setup information', 'How would you like to install App?',
    'Would you like to install App as a service?.',
    True, False);
  UsagePage.Add('Yes');
  UsagePage.Add('No');
  UsagePage.Values[0] := true;
end;

【问题讨论】:

    标签: inno-setup pascalscript


    【解决方案1】:

    这是个误会。 InitializeWizard 函数不显示任何内容。它只是创建自定义页面,不显示它们。

    尝试在函数末尾添加MsgBox 调用。您将看到该消息在向导表单弹出之前显示。


    自定义页面的顺序由Create*Page函数的AfterID参数(第一个)决定。

    如果您希望自定义页面显示在许可证页面之后,请使用wpLicense,而不是wpWelcome

    UsagePage := CreateInputOptionPage(wpLicense, ...);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-06
      • 1970-01-01
      • 2022-11-02
      • 2013-10-11
      相关资源
      最近更新 更多