|
-
Jun 5th, 2008, 04:38 PM
#1
Thread Starter
Hyperactive Member
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)
-
Jun 5th, 2008, 05:12 PM
#2
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.
-
Jun 6th, 2008, 01:26 AM
#3
Thread Starter
Hyperactive Member
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")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|