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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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;
标签:
inno-setup