- NSIS Discussion
- Licence page : how to force to scroll the EULA text
Archive: Licence page : how to force to scroll the EULA text
Socrate
15th January 2008 09:01 UTC
Licence page : how to force to scroll the EULA text
Hi
In my installer, I need to force user to scroll the EULA text. And as long as the user doesn't scroll the licence text , the MUI_LICENSEPAGE_CHECKBOX must be not enabled.
How can I proceed ? Thanks for reply.
Socrate
15th January 2008 11:15 UTC
Thanks Animaether
Best regards
Boyito
18th January 2008 18:29 UTC
HI
Ive use the scrollLicense plugin, its works very good, but a user talk to me an extrange behavior ; in the License Agreement page, if I click on Back button, and then click on next returning to license page its not yet necesary read the license to continue
Animaether
18th January 2008 19:02 UTC
can't say I've run into this problem myself, unless you're saying that...
1. on the license page, scroll down (This enables the Next button)
2. press the Back button
3. press the Next button (back on the license page)
at this point, the user doesn't have to scroll down -again-.
I think if the above scenario is what you mean, then it's by design; the user already 'read through' the EULA - not much point in making them read it again?
Boyito
18th January 2008 19:06 UTC
Hi Animaether
In your scenario, i think that everything its ok, but in my
number 1. scenario the user doesnt scroll down and the next button still disabled.
Bye
Animaether
18th January 2008 21:58 UTC
did you forget the /NOUNLOAD on the scrolllicense call, perhaps?
Afrow UK
19th January 2008 20:51 UTC
There may be a bug. Can you make a script to reproduce?
Stu
Boyito
20th January 2008 18:47 UTC
No I dont use NOUNLOAD
Y will try
Thanks
Boyito
21st January 2008 11:50 UTC
Hello its me again
The /NOUNLOAD its already in my code and the behavior its the same
For Afrow UK here is a script that reproduce the "bug"?
--------------------------------------------
!include MUI.nsh
Name "ScrollLicense Test"
OutFile "ScrollLicense.exe"
#Add
!define MUI_LICENSEPAGE_RADIOBUTTONS
!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
#
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_LICENSE $(MUILicense)
##!insertmacro MUI_PAGE_LICENSE ExampleRadioButtons.nsi
!insertmacro MUI_LANGUAGE English
#Add
LicenseLangString MUILicense ${LANG_ENGLISH} "ExampleRadioButtons.nsi"
#
LicenseForceSelection radiobuttons
Function LicenseShow
ScrollLicense::Set /NOUNLOAD
FunctionEnd
Function .onGUIEnd
ScrollLicense::Unload
FunctionEnd
Section "A Section"
SectionEnd
--------------------------------------------
The problem is here
Using this all its ok
!insertmacro MUI_PAGE_LICENSE ExampleRadioButtons.nsi
But using this...
!insertmacro MUI_PAGE_LICENSE $(MUILicense)
I need to use this way of shoe license because my installer is multilanguage
Bye
zepitou
22nd January 2008 17:31 UTC
Try like this:
; License page
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
!insertmacro MUI_PAGE_LICENSE $(MUILicense)
; Install Section
Section "MainSection" SEC01
;ur stuff
SectionEnd
Function LicenseShow
;this call to Unload method is missing into the plugin documentation
ScrollLicense::Unload
ScrollLicense::Set /NOUNLOAD
FunctionEnd
Function .onGUIEnd
ScrollLicense::Unload
FunctionEnd
Afrow UK
22nd January 2008 18:19 UTC
The plug-in was actually written to remember the settings so that if you go back then forward again it won't be reset.
Stu
Boyito
23rd January 2008 12:25 UTC
HI zepitou
With your recomendation nothing happend, its the same
Afrow, you say "The plug-in was actually written to remember the settings so that if you go back then forward again it won't be reset."
With this may understand that its not a bug??
Why if i not use a variable for the license text, going back and foward works fine???
Afrow UK
23rd January 2008 13:30 UTC
You said that clicking back then forward again means that you don't have to scroll to the end again to continue. I am saying that this is by design.
There have been a number of requests for additions and this can go on the list but right now I am very busy with non voluntary programming.
Stu
Boyito
23rd January 2008 13:46 UTC
OK thanks stu
Socrate
13th February 2008 10:30 UTC
Hi everybody
I had the same problem than Boyito but the solution given by zepitou works fine.
Titan89
28th May 2010 15:00 UTC
Thanks
Thanks to all who replied to this thread with useful advice. Helped me get my license agreement to work perfectly. This is a great plug in and a :up: to the maker.:)