Licence Agreement prompt in Inno Setup Compiler
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)
Re: Licence Agreement prompt in Inno Setup Compiler
Why not just use the LicenseFile directive in the [Setup] section. It will automatically do the license file screen for you. All you need to supply is the text or RTF file to show.
Re: Licence Agreement prompt in Inno Setup Compiler
Hi,
I know, however, I wish to use a custom licence form so I can put my links to see Privacy Statements etc..
Also, how do I break for new line between MsgBox("is it \n")