- NSIS Discussion
- Extra license page?
Archive: Extra license page?
snuden9
7th July 2005 20:17 UTC
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
Comm@nder21
7th July 2005 20:24 UTC
it is.
snuden9
7th July 2005 20:29 UTC
Any examples??
Comm@nder21
7th July 2005 20:34 UTC
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.
snuden9
7th July 2005 20:38 UTC
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.
kichik
7th July 2005 20:50 UTC
!insertmacro MUI_PAGE_LICENSE license1.txt
!insertmacro MUI_PAGE_LICENSE license2.txt
snuden9
8th July 2005 06:31 UTC
Thanx, but the headlines will then be the same on both pages.
I need different headlines and text at the checkbox.
Afrow UK
8th July 2005 08:47 UTC
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
snuden9
8th July 2005 12:23 UTC
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"
kichik
8th July 2005 14:51 UTC
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.
skullcruncha
3rd November 2006 19:08 UTC
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.