Old 20th July 2007, 15:51   #1
Veerugadde
Junior Member
 
Join Date: May 2007
Posts: 36
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.
Veerugadde is offline   Reply With Quote
Old 20th July 2007, 16:30   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 21st July 2007, 11:26   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump