gpt4 book ai didi

inno-setup - 未显示欢迎页面,而是先显示SelectDir页面

转载 作者:行者123 更新时间:2023-12-04 09:58:34 37 4
gpt4 key购买 nike

我正在尝试使用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}\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首先显示,然后显示安装。欢迎页面不显示!

最佳答案

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页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37773508/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com