6

インストール中のファイルの名前を、インストール プログレス バーの上のラベルから非表示にしたり削除したりして、"ex: install" だけを残すにはどうすればよいですか?

ファイルが解凍されているように見えます。

Inno Setup のインストール進行状況ページのスクリーンショット

LabelCurrFileName.Caption :=
  ExpandConstant('{cm:ExtractedFile} ') + 
  MinimizePathName(
    CurrentFile, LabelCurrFileName.Font, LabelCurrFileName.Width - ScaleX(100));

LabelCurrFileName.Caption := ExpandConstant('{cm:ExtractedFile} ');
4

1 に答える 1

15

FilenameLabelラベルをカスタムのものに置き換えたいと思います。FilenameLabelさまざまな言語のカスタム テキストを指定する方法と、次のスクリプトで見つけることができるラベルの代わりに配置されるカスタム ラベルでそれらを使用する方法:

[Languages]
Name: en; MessagesFile: "compiler:Default.isl"
Name: br; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"

[CustomMessages]
en.InstallingLabel=Installing...
br.InstallingLabel=Instalando...

[Code]

procedure InitializeWizard;
begin
  with TNewStaticText.Create(WizardForm) do
  begin
    Parent := WizardForm.FilenameLabel.Parent;
    Left := WizardForm.FilenameLabel.Left;
    Top := WizardForm.FilenameLabel.Top;
    Width := WizardForm.FilenameLabel.Width;
    Height := WizardForm.FilenameLabel.Height;
    Caption := ExpandConstant('{cm:InstallingLabel}');
  end;
  WizardForm.FilenameLabel.Visible := False;
end;

@MartinPrikryl 編集: 完全な実装については、Inno Setup - How to create a personal FilenameLabel with the names I want? を参照してください。

于 2012-10-29T05:03:22.590 に答える