Results 1 to 3 of 3

Thread: Licence Agreement prompt in Inno Setup Compiler

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2007
    Posts
    279

    Question 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)

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2007
    Posts
    279

    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
  •  



Click Here to Expand Forum to Full Width