add a second progress bar kurutucu, it is very nice for the version no SlideShow
Code:
#define SecondProgressBar
#ifdef SecondProgressBar
LabelPct2: TLabel;
ISDoneProgressBar2:TNewProgressBar;
#endif
#ifdef SecondProgressBar
if CurrentPct<=1000 then ISDoneProgressBar2.Position := CurrentPct;
LabelPct2.Caption := IntToStr(CurrentPct div 10)+'.'+chr(48 + CurrentPct mod 10)+'%';
#endif
LabelCurrFileName.Caption:=' Extracting File: '+MinimizePathName(CurrentFile, LabelCurrFileName.Font, LabelCurrFileName.Width-ScaleX(100));
LabelTime1.Caption:=' Time Elapsed: '+TimeStr2;
LabelTime2.Caption:='Time Remaining: '+TimeStr1;
#ifdef SecondProgressBar
ISDoneProgressBar2.Hide;
LabelPct2.Hide;
#endif
#ifdef SecondProgressBar
PBTop:=PBTop+ScaleY(25);
ISDoneProgressBar2 := TNewProgressBar.Create(WizardForm);
with ISDoneProgressBar2 do begin
Parent := WizardForm;
Height := 25;
Left := ScaleX(77);
Top := PBTop+ScaleY(8);
Width := ScaleX(500);
Max := 1000;
end;
LabelCurrFileName := TLabel.Create(WizardForm);
with LabelCurrFileName do begin
Parent := WizardForm;
AutoSize := False;
Width := ISDoneProgressBar2.Width+ScaleX(30);
Left := ISDoneProgressBar2.Left;
Top := PBTop-20;
end;
LabelTime1 := TLabel.Create(WizardForm);
with LabelTime1 do begin
Parent := WizardForm;
AutoSize := False;
Width := ISDoneProgressBar2.Width div 2;
Left := ISDoneProgressBar2.Left;
Top := PBTop + ScaleY(30);
end;
LabelTime2 := TLabel.Create(WizardForm);
with LabelTime2 do begin
Parent := WizardForm;
AutoSize := False;
Width := LabelTime1.Width+ScaleX(40);
Left := 400;
Top := LabelTime1.Top;
end;
LabelPct2 := TLabel.Create(WizardForm);
with LabelPct2 do begin
Parent := WizardForm;
AutoSize := true;
Font.Height:=-24;
Left := ISDoneProgressBar2.Left -33 + ISDoneProgressBar2.Width div 2;
Top := ISDoneProgressBar2.Top + ScaleY(70);
end;
#endif