Inno Setup:如何在程序 InitializeWizard() 显示自定义页面之前显示许可证页面;
Inno Setup: How to display license page before custom page shows from procedure InitializeWizard();
我正在使用 LicenseFile=D:\authorized\Builds\Integration\License.rtf
来显示许可页面和程序 InitializeWizard();
。
问题 是在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;
这是误会。 InitializeWizard
函数不显示任何内容。它只创建自定义页面,不显示它们。
尝试在函数末尾添加一个 MsgBox
调用。您会看到该消息甚至在向导表单弹出之前就已显示。
自定义页面的顺序由 Create*Page
函数的 AfterID
参数(第一个)决定。
如果您希望自定义页面显示在许可页面之后,请使用 wpLicense
,而不是 wpWelcome
。
UsagePage := CreateInputOptionPage(wpLicense, ...);
我正在使用 LicenseFile=D:\authorized\Builds\Integration\License.rtf
来显示许可页面和程序 InitializeWizard();
。
问题 是在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;
这是误会。 InitializeWizard
函数不显示任何内容。它只创建自定义页面,不显示它们。
尝试在函数末尾添加一个 MsgBox
调用。您会看到该消息甚至在向导表单弹出之前就已显示。
自定义页面的顺序由 Create*Page
函数的 AfterID
参数(第一个)决定。
如果您希望自定义页面显示在许可页面之后,请使用 wpLicense
,而不是 wpWelcome
。
UsagePage := CreateInputOptionPage(wpLicense, ...);