PDA

View Full Version : Inno setup problem


bairagyakushal4
11-03-2017, 10:43
I have this script. How to change change this in the script?

From this:

17642
17643


to


17644
17643
(finish page is same)


Plus it not showing "rolling back changes" when clicked cancel how to do that?

From this:

17646

to

17647

Please help!

rinaldo
11-03-2017, 15:56
if you do not explain your problem is difficult :rolleyes:

TimeLabel
ElapsedTimeLbl.Hide; or ElapsedTimeLbl.Caption:='Extraction Error';
ElapsedTimeLbl.Font.Color:=clred;
RollingBack
RollingBack.Show;

no ElapsedTime
if CurPageID=wpFinished then
begin
TimelBL.Hide;
AllCancel;
HideControls;
ElapsedTimeLbl.Hide;
end;

Method1

if (CurStep=ssPostInstall) and ISDoneError then begin
RollingBack.Show;
ElapsedTimeLbl.Font.Color:=clred;
ElapsedTimeLbl.Caption:='Extraction Error';
Exec(ExpandConstant('{uninstallexe}'), '/VERYSILENT','', sw_Hide, ewWaitUntilTerminated, ResultCode);

method 2 > Script.rar

bairagyakushal4
11-03-2017, 21:24
Thanks very much it did fix the "rolling back changes" problem,thank u, but For the elapes time level I want to show the elapsed time level in installing page as well as finished page. As u can see finish page already have the elapsed time level so i want elapsed time level in intalling page. I tried but i can't able to show elaps in both pages.

bairagyakushal4
11-03-2017, 21:27
and thanks for posting the script, I really appreciate it.

rinaldo
11-03-2017, 22:15
EXAMPLE

var
A:Longint;

A:=Round(dt)
ElapsedTime.Caption:=ExpandConstant(' {cm:Elapsed} ')+LongintToStringTime(A);

bairagyakushal4
11-03-2017, 22:52
It showing error duplicate identifier "A".
What now?:confused::confused::confused:

rinaldo
12-03-2017, 00:07
It showing error duplicate identifier "A".
What now?:confused::confused::confused:ok

bairagyakushal4
12-03-2017, 02:03
:):):):) BIG Thanks for the help.That fix the problem.U r really a great guy.
But see this :
17653

when there will be more than seceonds like hour and minutes then it will get croped & won't be able to see,so can u tell some fix?
17654
So i want Elapsed time will start from progress bar left & remening time end in progress bar right,

bairagyakushal4
12-03-2017, 06:32
Another thing can u tell me to use component like english.bin & russian.bin only extract 1 according to task or component selected.