簡體   English   中英

Inno Setup - 如何在歡迎頁面的左下角放置版本號

[英]Inno Setup - How can I put a version number on the bottom left corner of welcome page

我想在安裝程序歡迎頁面的左下角顯示版本號,如圖所示。 但我不確定如何自定義啟動頁面。 誰能建議如何使用 Inno Setup 腳本執行此操作?

在此處輸入圖片說明

InitializeWizard事件函數中創建一個新的TNewStaticText標簽

[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;

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM