Archive: license page creating problem.


license page creating problem.
Hello,

There is problem when i include the license page as the welcome page is not activating the next button when i start the installer.So installer gets struck in welcome page itself.

!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\nsis.bmp" ; optional
!define MUI_ABORTWARNING
!define MUI_PAGE_CUSTOMFUNCTION_SHOW LicenseShow
;Interface Settings
!include "MUI.nsh"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"

Function LicenseShow
ScrollLicense::Set /NOUNLOAD /CHECKBOX "Accept the conditions"
FunctionEnd

Can you also please tell me as how to use checkbox on license page to move next page only on clicking the checkbox?

Thanks alot.


The ScrollLicense probably gets confused because you've set it on the welcome page instead of on the license page. Put MUI_PAGE_CUSTOMFUNCTION_SHOW before MUI_PAGE_LICENSE and not before MUI_PAGE_WELCOME.


What kichik says will fix it. If you only want one check box you do not need to specify the /CHECKBOX plug-in parameter. That is for having two accept check boxes.

You need LicenseForceSelection checkbox.

Stu