Skip to content
⌘ NSIS Forum Archive

Load DropList items from file

2 posts

smartfish#

Load DropList items from file

Hello

is it possible to load the "ListItems" value of a DropList
from a file ?

I need to load a big list in a droplist,
but it seems only possible to modify the .ini file in runtime,
and the size of the list seems to be limited to the max size of a string...


Thanks for your help.

Eric
Comperio#
If you want to use runtime commands at compile time, you'll need to create a separate EXE that will read the items from a file and then add them to your installoptions page (ini) file. Once you have that, then call it in your main script using a runtime command such as !system. Here's an example:


If your listitems string is too long, you may need to use the special large strings build of NSIS.