我正在尝试使用 Inno Setup 来制作安装程序。
我想先显示欢迎页面,然后显示 SelectDir。
This is 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}\2.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。欢迎页面不显示!
默认情况下会跳过欢迎页面创新设置5.5.7 https://jrsoftware.org/files/is5.5-whatsnew.htm#5.5.7:
根据 Microsoft 桌面应用程序指南的建议,DisableWelcomePage
现在默认为yes
。 ...所有以前版本中的默认值是no
.
要显示它,您必须设置:
[Setup]
DisableWelcomePage=no
正如上面引用中提到的,建议使用默认值,因此您应该遵循它们。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)