Archive: Dynamic Sections


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


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


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:)


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.