Archive: Extra license page?


Extra license page?
Is it possible to have 2 licence pages with different headlines and text?

I need 2 pages. They must have a checkbox that needs to be checked in order to proceed. I have tried making 2 MUI_PAGE_LICENSE and change the text but it doesnt work

Do I have to make a custom page? Is it possible to make a costum page where a checkbox must be checked before "next" button is active.

Any help would be appreciated.

Soren


it is.


Any examples??


read the modern ui readme for available settings for the license page.

there are several macros to change the acception type and the text areas all over this site.


I can edit the text all over, but then the text is the same for both license pages. I have read the UI readme, but I havent been able to figure it out.


!insertmacro MUI_PAGE_LICENSE license1.txt
!insertmacro MUI_PAGE_LICENSE license2.txt


Thanx, but the headlines will then be the same on both pages.

I need different headlines and text at the checkbox.


I think you can do this:

!define MUI_LICENSEPAGE_TEXT_TOP "blah"
...
!insertmacro MUI_PAGE_LICENSE license1.txt

!define MUI_LICENSEPAGE_TEXT_TOP "blah blah"
...
!insertmacro MUI_PAGE_LICENSE license2.txt

-Stu


I also need to have 2 differen titles. If I try the code below, it would say: !define: "MUI_TEXT_LICENSE_TITLE" already defined!

!define MUI_TEXT_LICENSE_TITLE "11111"
!insertmacro MUI_PAGE_LICENSE "License.txt"

!define MUI_TEXT_LICENSE_TITLE "22222"
!insertmacro MUI_PAGE_LICENSE "License 2.txt"


MUI_TEXT_LICENSE_TITLE is an internal define, you shouldn't use it. Open the MUI readme, go to section 3, page settings, general page settings and find MUI_PAGE_HEADER_TEXT.


I searched these forums when faced with this problem and never found this thread or an example as good as is in this thread, but I eventualy came up with:


!insertmacro MUI_PAGE_LICENSE "License.txt"
# Define text for second license page - why this works (inline with pages) I'm not fully sure
!define MUI_PAGE_HEADER_TEXT "Terms && Conditions"
!define MUI_PAGE_HEADER_SUBTEXT "Please review the Terms && Conditions before installing ${APPNAME}."
!define MUI_LICENSEPAGE_TEXT_TOP "Press Page Down to see the rest of the agreement."
!insertmacro MUI_PAGE_LICENSE "Agreement.txt"


This works and produces two license pages.