krisbabu
25th February 2003 04:55 UTC
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
kichik
26th February 2003 09:52 UTC
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:
Page custom sectionOneValidate
>Function sectionOneValidate
SectionGetFlags${section1} $0
StrCmp$0 ${SF_SELECTED} 0 skipPage
# show page here ...
# InstallOptions::dialog....
skipPage:
>FunctionEnd
>
krisbabu
28th February 2003 15:13 UTC
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.
kichik
28th February 2003 22:34 UTC
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.
krisbabu
21st March 2003 05:31 UTC
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:rolleyes: .if possible pls let me know.only if this option is possible,i can move further.
Bye with thanx
Sarathi
kichik
21st March 2003 11:42 UTC
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.
krisbabu
21st March 2003 13:16 UTC
Thanks .I will keep in touch with u.