欢迎页面未显示,而是先显示 SelectDir 页面
Welcome page not showing, SelectDir page is showing first instead
我正在尝试使用 Inno Setup 制作安装程序。
我想先显示欢迎页面,然后显示 SelectDir。
这是CurPageChanged
示例代码:
procedure CurPageChanged(CurPageID: integer);
begin
if CurPageID = wpWelcome then
begin
HideComponents;
WLabel.show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Configure';
end;
if CurPageID = wpSelectDir then
begin
HideComponents;
BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}.bmp'));
WizardForm.DirEdit.Show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Install';
WizardForm.DirBrowseButton.Show;
TasksSeparateBevel.Show;
TasksSeparateBevel2.Show;
InstallpathLabel.Show;
DiskSpaceLablel.Show;
ShortcutLabel.Show;
ShortcutCB.Show;
CreateDLabel.Show;
end;
if CurPageID = wpInstalling then
begin
HideComponents;
MakeSlideShow;
TimerID := SetTimer(0, 0, 10000, WrapTimerProc(@OnTimer, 4));
WizardForm.CancelButton.show;
WizardForm.ProgressGauge.show;
end;
end;
但是SelectDir先显示然后Install。欢迎页面未显示!
默认情况下会跳过欢迎页面,因为 Inno Setup 5.5.7:
As recommended by Microsoft's desktop applications guideline, DisableWelcomePage
now defaults to yes
. ... The defaults in all previous versions were no
.
要显示它,您必须设置:
[Setup]
DisableWelcomePage=no
上面引用中提到的想法,建议使用默认值,因此您应该遵循它们。
我正在尝试使用 Inno Setup 制作安装程序。
我想先显示欢迎页面,然后显示 SelectDir。
这是CurPageChanged
示例代码:
procedure CurPageChanged(CurPageID: integer);
begin
if CurPageID = wpWelcome then
begin
HideComponents;
WLabel.show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Configure';
end;
if CurPageID = wpSelectDir then
begin
HideComponents;
BmpFile.Bitmap.LoadFromFile(ExpandConstant('{tmp}.bmp'));
WizardForm.DirEdit.Show;
WizardForm.NextButton.Show;
WizardForm.NextButton.Caption := 'Install';
WizardForm.DirBrowseButton.Show;
TasksSeparateBevel.Show;
TasksSeparateBevel2.Show;
InstallpathLabel.Show;
DiskSpaceLablel.Show;
ShortcutLabel.Show;
ShortcutCB.Show;
CreateDLabel.Show;
end;
if CurPageID = wpInstalling then
begin
HideComponents;
MakeSlideShow;
TimerID := SetTimer(0, 0, 10000, WrapTimerProc(@OnTimer, 4));
WizardForm.CancelButton.show;
WizardForm.ProgressGauge.show;
end;
end;
但是SelectDir先显示然后Install。欢迎页面未显示!
默认情况下会跳过欢迎页面,因为 Inno Setup 5.5.7:
As recommended by Microsoft's desktop applications guideline,
DisableWelcomePage
now defaults toyes
. ... The defaults in all previous versions wereno
.
要显示它,您必须设置:
[Setup]
DisableWelcomePage=no
上面引用中提到的想法,建议使用默认值,因此您应该遵循它们。