PDA

View Full Version : Problem with installing


Bilawal
24-03-2015, 05:38
I got a problem while install with my script. If i chose "no" during cancel option in installing the cancel button disappears.

http://s15.postimg.org/jn18fh3yz/Untitled0.jpg

http://s3.postimg.org/90vwu6b5v/Untitled1.jpg

http://s9.postimg.org/m6fs1psxr/Untitled2.jpg


Help Me.!

Razor12911
26-03-2015, 03:01
Look at
procedure SetStateNewButtons;

you have this
with WizardForm.CancelButton do begin
BtnSetText(CancelBtn,PAnsiChar(WizardForm.CancelBu tton.Caption));
BtnSetVisibility(CancelBtn,Visible);
end;

with WizardForm.CancelButton do begin
BtnSetText(CancelBtn,PAnsiChar(WizardForm.CancelBu tton.Caption));
BtnSetVisibility(CancelBtn,Visible);
end;

look at the bold part,

this procedure gets used each and everytime and it depends on cancel button's visibility

and when you check CurpageChanged procedure under wpInstalling
you have
WizardForm.CancelButton.Hide;
which is why the buttons get's hidden, I think.

Also under CurStepChanged, there is HideControls;

just find a way to deal with those procedure and the button visibility problem will be dealt with.

Bilawal
26-03-2015, 23:55
Can't find anything about this. Please do something if you have time.