Inno Setup - How can I put a version number on the

2019-02-11 06:50发布

I want to display a version number on bottom left corner of installer Welcome page, just like shown in this image. But I am not sure how to customize launch page. Can anyone suggest how to do this using Inno Setup script?

enter image description here

标签: inno-setup
1条回答
Explosion°爆炸
2楼-- · 2019-02-11 07:17

Create a new TNewStaticText label in the InitializeWizard event function:

[Code]

procedure InitializeWizard();
var
  VersionLabel: TNewStaticText;
begin
  VersionLabel := TNewStaticText.Create(WizardForm);
  VersionLabel.Caption := Format('Version: %s', ['{#SetupSetting("AppVersion")}']);
  VersionLabel.Parent := WizardForm;
  VersionLabel.Left := ScaleX(16);
  VersionLabel.Top :=
    WizardForm.BackButton.Top +
    (WizardForm.BackButton.Height div 2) -
    (VersionLabel.Height div 2)
end;
查看更多
登录 后发表回答