Archive: Licence page : how to force to scroll the EULA text


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.


http://nsis.sourceforge.net/ScrollLicense_plug-in

:)


Thanks Animaether
Best regards


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


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?


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


did you forget the /NOUNLOAD on the scrolllicense call, perhaps?


There may be a bug. Can you make a script to reproduce?

Stu


No I dont use NOUNLOAD
Y will try
Thanks


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


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


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


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???


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


OK thanks stu


Hi everybody

I had the same problem than Boyito but the solution given by zepitou works fine.


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.:)