0

Anyone know how to put a percentage% of the progress bar down the bar

ex: edited image in photoshop inno setup 5.5.1-unicode+Script ISDone 0.6 thanks

enter image description here

Marcio
  • 183
  • 3
  • 12

1 Answers1

1

If you want to put the percentage label on the Installing wizard page, then I think it is not possible. But you could use the CreateOutputProgressPage which let you control the progressbar and you can add a percentage label via Pascal Script.

[Code]
procedure InitializeWizard();
var
  Page: TOutputProgressWizardPage;
  PercentLabel: TLabel;
begin
  Page := CreateOutputProgressPage('Caption', 'Description');
  Page.ProgressBar.Show;
  PercentLabel := TLabel.Create(Page);
  PercentLabel.Top := Page.ProgressBar.Top + 20;
  PercentLabel.Caption := '0%';
  ...
end;

Also read this question: Inno Setup Simple progress page for Run section. It demonstrates how to control the progress.

Community
  • 1
  • 1
splash
  • 13,037
  • 1
  • 44
  • 67
  • Thank splash but did not modify the place I got down but the size of the numbers but not Left: = ISDoneProgressBar1.Width ScaleX + (-150); Top: = ScaleY ISDoneProgressBar1.Top + (100); – Marcio Nov 07 '12 at 14:22
  • 1
    From now on you can use the new [`CurInstallProgressChanged event`](https://github.com/jrsoftware/issrc/issues/51) to calculate the percentage. – TLama Apr 09 '13 at 14:43
  • @TLama: Thanks for the notification and your work on this! – splash Apr 10 '13 at 08:18