Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 25th February 2003, 03:55   #1
krisbabu
Junior Member
 
Join Date: Feb 2003
Location: India
Posts: 12
custom page

Hi..
this is the hierarchy of my installer.

1.Licence Page
2.component page
2.1 subsection 1
2.1.1 section 1
2.1.2 section 2
2.2 subsection 2
3.for each section, when it is checked i need respective custom page for user validation.

for example if i check section 2.1 ,it should give custom page associated with it and if it is 2.2 it should be different.

looking forward to ur reply
Thanks
krisbabu is offline   Reply With Quote
Old 26th February 2003, 08:52   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
What you need to do is check if the section related to the custom page was checked in the custom page's creator function. If it wasn't checked, just don't call InstallOptions. Use something like this:

PHP Code:
Page custom sectionOneValidate
Function sectionOneValidate
  SectionGetFlags 
${section1} $0
  StrCmp 
$${SF_SELECTED0 skipPage
    
# show page here ...
    # InstallOptions::dialog....
  
skipPage:
FunctionEnd 

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 28th February 2003, 14:13   #3
krisbabu
Junior Member
 
Join Date: Feb 2003
Location: India
Posts: 12
Thanks

For the same custom page - i have 1 more soln-ie.using .onSelectionchange,i will be checking whether section is checked or not and calling a respective fn.if not return.

now the problem that still exist is invoking the event handlers-Suggestions r welcomed.
Thanks.
krisbabu is offline   Reply With Quote
Old 28th February 2003, 21:34   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
I am sorry, I don't understand. What event handlers? What does this have to do with .onSelChange? All you need to do is check if the section was selected in the custom page's creator function. You don't need to call that function, NSIS calls it for you, it's a callback function.

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 March 2003, 04:31   #5
krisbabu
Junior Member
 
Join Date: Feb 2003
Location: India
Posts: 12
Hi..
we have to install more than 1 component at a time.And it is upto the user to decide which product he wants.simillarly uninstall should have separate options for different components.Is it possible with NSIS .if possible pls let me know.only if this option is possible,i can move further.
Bye with thanx
Sarathi
krisbabu is offline   Reply With Quote
Old 21st March 2003, 10:42   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Showing a component selection page is not yet possible in the uninstaller. It's planned though. For now you can use a regular InstallOptions page read the INI for the results and skip parts of the uninstaller code according to it.

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 March 2003, 12:16   #7
krisbabu
Junior Member
 
Join Date: Feb 2003
Location: India
Posts: 12
Thanks .I will keep in touch with u.
krisbabu is offline   Reply With Quote
Reply
Go Back   Winamp 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