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;
|