WizardImageFile 在 Inno Setup 5.5.8 中不起作用

WizardImageFile does not work in Inno Setup 5.5.8

我安装了最新版本的 Inno Setup v5.5.8 (a),现在我无法在我的安装向导中查看 WizardImageFile 位图文件。它在以前的版本中工作得很好。我做错了什么还是错误?这是我在 Inno Setup 向导的帮助下自行创建的脚本示例。

当然 setup_inno.bmpsetup_inno_small.bmp 与 iss 脚本文件位于同一文件夹中。小图像效果很好,setup_inno.bmp 是 24 位色深(Windows 格式),宽度和高度为 164X314 像素。

有什么推荐吗?

此致,

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)

AppId={{EF909D9F-7C2F-46E8-9BBF-C65D3323A436}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DisableProgramGroupPage=yes
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
WizardImageFile=setup_inno.bmp
WizardSmallImageFile=setup_inno_small.bmp
WindowStartMaximized=yes
WindowShowCaption=no
WindowVisible=yes
BackColor=[=10=]0000
BackColor2=$FFFFFF


[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

您是否知道自 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.

所以您实际上只能在最后(完成)页面上看到 WizardImageFile,而不是像以前那样在第一(欢迎)页面上看到。

我找到了这个 answer。它指出:

The WizardImageFile is shown on the Welcome and Finish pages. However, the Welcome page is skipped by default now (see DisableWelcomePage), so it will normally only be visible on the Finished page. (This is enabled by default, but it is possible that you disabled that too -- see DisableFinishedPage.)

The WizardSmallImageFile is shown on all other pages.

这就是为什么我看不到图像的原因。想知道 欢迎 页面默认关闭吗?

我发现 this 其中指出:

Don't use Welcome pages—make the first page functional whenever possible. Use an optional Getting Started page only when:

  • The wizard has prerequisites that are necessary to complete the wizard successfully.
  • Users may not understand the purpose of the wizard based on its first Choice page, and there isn't room for further explanation.
  • The main instruction for Getting Started pages is "Before you begin:".