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.
LabelCurrFileName.Caption :=
ExpandConstant('{cm:ExtractedFile} ') +
MinimizePathName(
CurrentFile, LabelCurrFileName.Font, LabelCurrFileName.Width - ScaleX(100));
LabelCurrFileName.Caption := ExpandConstant('{cm:ExtractedFile} ');
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With