pesmerg
4th October 2006 00:45 UTC
Dynamic Sections
Hi, Are there any way include sections/subsections on runtime into nsis component page.
What i want to is insert subsections into plugins section like below in runtime, sub sections refer to directories .
Directory Structure
-----------------
installpath :
install.exe
component1Dir
component2Dir
component3Dir
NSI Section
----------------
component page:
Base Files
Plugins
->component1
->component2
->component3
Documentation
Shorcuts
n_baua
4th October 2006 06:21 UTC
Hi
Hi,
I am not very much clear about your query, but I guess your answer is somewhere here.
http://nsis.sourceforge.net/Category...ment_Functions
pesmerg
4th October 2006 11:21 UTC
Thanks for the reply n_baua,
i just want to
->read name of the sub directories in exedir.
->add the names to components sections so user can
select or unselect.
and want the copy these user selectted dirs to instdir.
Anyway, i think i coulnd't explain it clearly, again:)
kichik
6th October 2006 16:42 UTC
Predefine a large number of nameless sections. Then, on runtime, give those sections names according to the files in the directory. Use SectionSetText to set the section's name.
You could also use a custom page with a listbox.