title: Inno Setup replace buttons at wpFinished page
body: <p>I'm trying to override Next/Cancel buttons on wpFinished page - NextButton should show downloaded file and exit the installator - it's working ok but CancelButton doesn't do nothing - it should close the installator with standard confirm. I wonder it is possible with standard inno events or I need to write own code to exit the application and show the confirm?</p>
  
  <pre><code>function NextButtonClick(CurPage: Integer): Boolean;
  begin
    if CurPage = wpFinished then begin
      ShowDownloadedFile();
    end;
    Result := True;
  end;
  
  
  procedure CurPageChanged(CurPageID: Integer);
  begin
    if CurPageID = wpFinished then begin
      WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);  
      WizardForm.CancelButton.Caption := SetupMessage(msgButtonFinish);  
      WizardForm.CancelButton.Visible := True;  
    end;
  end;
  </code></pre>