6

How can I hide or remove the names of files being installed from the label above the installation progress bar leaving only "ex: install"?

It appears as the files are being unpacked.

Screenshot of the Inno Setup installation progress page

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

LabelCurrFileName.Caption := ExpandConstant('{cm:ExtractedFile} ');
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Marcio
  • 183
  • 3
  • 12
  • Could you post an English screenshot of the same screen, please ? Also, what version of InnoSetup are you using ? Could you include it into your question as well ? Thanks! – TLama Oct 29 '12 at 05:02
  • Does this answer your question? [Inno Setup - How to create a personalized FilenameLabel with the names I want?](https://stackoverflow.com/questions/43748508/inno-setup-how-to-create-a-personalized-filenamelabel-with-the-names-i-want) – StayOnTarget Jan 27 '22 at 16:48

1 Answers1

15

I think you want to replace the FilenameLabel label with your custom one. How to specify custom texts for different languages and how to use them with a custom label, that will be placed instead of FilenameLabel label you can find in the following script:

[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 edit: For a complete implementation, see Inno Setup - How to create a personalized FilenameLabel with the names I want?

Community
  • 1
  • 1
TLama
  • 75,147
  • 17
  • 214
  • 392