Page Ordering and duplicates?
Hi,
I'm very new to NSIS and was trying to add a page to get the CD Key input. I have created the page and it shows up. The only problem is that the install seems to run twice. I would like the CD Key page to show up after the Welcome and licence page so I have the following:
;--------------------------------
;Order of pages
!insertmacro MUI_PAGECOMMAND_WELCOME
!insertmacro MUI_PAGECOMMAND_LICENSE
LangString CDKEY_TITLE ${LANG_ENGLISH} "Please enter your CD Key."
LangString CDKEY_SUBTITLE ${LANG_ENGLISH} "Please enter the CD Key found on the back of the CD Case"
Page custom SetCustom
!insertmacro MUI_PAGECOMMAND_COMPONENTS
!insertmacro MUI_PAGECOMMAND_DIRECTORY
!insertmacro MUI_PAGECOMMAND_INSTFILES
!insertmacro MUI_PAGECOMMAND_LICENSE
!insertmacro MUI_PAGECOMMAND_FINISH
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
The pages display in the correct order once, then goes through everything again without the CD Key page. I suspect it is the line: !insertmacro MUI_LANGUAGE "English". Is this line necessary? When I comment it out, I get this error: Error: resolving pre-page function function "mui.Welcome" in pages. I'm not sure how to solve this.
Any ideas?
Thanks in advance,
James