Old 20th April 2011, 20:15   #1
swejoe
Junior Member
 
Join Date: Apr 2011
Posts: 1
Multiple MUI_PAGE_COMPONENTS dialogs

Hi.
I’m on my way to create my first NSIS installer.
I have successfully created a radio button page for the user to select one of two alternatives (using the MUI_PAGE_COMPONENTS page, and doing the following in the .onSelChange function (not complete code)

!insertmacro MUI_PAGE_COMPONENTS

Function .onSelChange
!insertmacro StartRadioButtons $1
!insertmacro RadioButton ${section_form}
!insertmacro RadioButton ${section_basic}
!insertmacro EndRadioButtons
FunctionEnd

Now I need a second, similar page but for another variable and other alternatives.
How can I create a second MUI_PAGE_COMPONENTS page that will present other Radio buttons in the .onSelChange function? Is that possible?
Can anyone point me to some sample code that solves my problem.
Thanks!
swejoe is offline   Reply With Quote
Old 20th April 2011, 21:40   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I think you're over complicating things. Why not create a custom page or two instead? If you have more than one components page you have to hide some sections before showing one page and hide/show other sections for the other page. It gets messy.

Stu
Afrow UK is offline   Reply With Quote
Old 21st April 2011, 05:41   #3
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Indeed, you'll probably want to create a custom page using nsDialogs. There's an excellent tutorial in the nsDialogs readme.
http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html
MSG 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