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
Page Ordering and duplicates?
6 posts
The page system has become way easier in the latest development versions. I recommend you to get the latest one at http://nsis.sf.net
About that beta 3 script: you should define MUI_CUSTOMPAGECOMMANDS.
About that beta 3 script: you should define MUI_CUSTOMPAGECOMMANDS.
latest release?
I'm currently using 2.0b3. Is there a new stable release out? or will the development snapshots be good enough?
Thanks,
James
I'm currently using 2.0b3. Is there a new stable release out? or will the development snapshots be good enough?
Thanks,
James
The development version is still being worked on, therefore there could be a few problems in it, but personally I would say that the dev snapshot is the must if you want to keep up with the latest code and gui's etc...
-Stu
-Stu
Beta 4 is almost ready. The current snapshot is quite stable (more stable than beta 3).
Thanks guys, I think i'm back on the right track now.