|
|
#1 |
|
Junior Member
Join Date: Jul 2007
Location: India
Posts: 30
|
Custom Pages for different sections
Hello Friends,
My Installer has different sections. For one Section I need the user Input from User. For that It should display Custom Page. If user doesn't need that Component The Custom page should not display. ============================== Section SecA SEC1 --- --- SectionEnd Section SecB SEC1 --- --- <Here I Would like to Insert a New Page for User Input> SectionEnd =============================== we define all the Pages in the Top and the installer will show the Pages one by One. Is there any Option to create\show the diaplogs\Pages w.r.t to Selected Cmponents\Sections? |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: May 2005
Location: Taranaki, New Zealand
Posts: 400
|
In the leave function of the components page, you can check the sections to see if they are checked or not, and you can choose which pages to display based on it. All your custom pages should be defined in your installer, and skip the custom pages with Abort in the pre function as needed.
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2007
Location: India
Posts: 30
|
Thanks for Quick support, Can I have the sample code for this in Forum, or Developer Center. I have been searching for this in Discussions and in NSIS Dvelopment Center, but Failed...(:-(
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2005
Location: Taranaki, New Zealand
Posts: 400
|
Here. I whipped up an example script for you.
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
To make it simple, you can use ${If}/${Unless} ${SectionIsSelected}:
code: Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2007
Location: India
Posts: 30
|
I got it. Thank you very much Jason & Stu,
I have used the sample code provided by Jason. It's working now |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|