View Single Post
  #79  
Old 07-01-2014, 04:21
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Logrim View Post
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.
did you try with this line under procedure CurStepChanged(CurStep: TSetupStep);

Code:
if (CurStep=ssPostInstall) and ISDoneError then begin
  Exec(ExpandConstant('{uninstallexe}'), '/VERYSILENT','', sw_Hide, ewWaitUntilTerminated, ResultCode);
end;
Reply With Quote