View Single Post
  #78  
Old 07-01-2014, 03:49
Logrim Logrim is offline
Registered User
 
Join Date: Jun 2009
Location: Spain
Posts: 153
Thanks: 116
Thanked 72 Times in 44 Posts
Logrim is on a distinguished road
I have a problem when cancel the install.. when cancel i want the install delete the folder inno created, i think my code is right but for some reason dont work.. i post my cancel button code.. someone help me please .. thanks.

P.D. y_thelasknight, form problem solved,, thanks for your help.

Quote:
procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
sndPlaySound(ExpandConstant('{tmp}\click.wav'), $0001);
Confirm:=False;
if CurPageID=wpInstalling then begin;
if Cancel then begin
ISDoneError:=True;
ISDoneCancel:=1;
AppNameLabel.Font.Color:=clRed;
AppNameLabel.Caption:='Deshaciendo cambios, por favor espere...'
DelTree(ExpandConstant('{app}'), True, True, True);
WizardForm.CancelButton.Enabled:=False;
end;
Reply With Quote