Hi, I've got this code:

Code:
  { LicenseForm_NextButtonClick }

  function LicenseForm_NextButtonClick(Page: TWizardPage): Boolean;
var
Resulta : Boolean;
begin
Resulta := MsgBox('Do you accept the Licence Agreement?', mbConfirmation, MB_YESNO) = idYes;
if Resulta =false then
               MsgBox('Do not install this software!', mbInformation, MB_OK)
end;
If the user presses Yes, it does not navigate to the next form. I tried to resolve this by setting result:=true; but it didn't work. The language seems sort of Pascal-y.

How do I make the application terminate if the User Disagrees and move to next part of application if they agree? Or is this impossible.

Thanks (expecting an answer from Randem)