未显示欢迎页面,而是先显示SelectDir页面 [英] Welcome page not showing, SelectDir page is showing first instead

查看:104
本文介绍了未显示欢迎页面,而是先显示SelectDir页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Inno Setup进行安装.

I'm trying to make installer using Inno Setup.

我想先显示欢迎"页面,然后显示SelectDir.

And I want to show Welcome page first, then 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首先显示,然后显示安装.欢迎页面不显示!

But the SelectDir shows first then Install. Welcome page does not show!

推荐答案

由于

按照Microsoft桌面应用程序指南的建议,DisableWelcomePage现在默认为yes. ...所有先前版本中的默认值为no.

As recommended by Microsoft's desktop applications guideline, DisableWelcomePage now defaults to yes. ... The defaults in all previous versions were no.

要显示它,您必须设置:

To show it, you have to set:

[Setup]
DisableWelcomePage=no


如上引言所述,建议使用默认值,因此应遵循这些默认值.

这篇关于未显示欢迎页面,而是先显示SelectDir页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆