Old 30th June 2006, 14:04   #1
smartfish
Junior Member
 
Join Date: Jun 2006
Posts: 1
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
smartfish is offline   Reply With Quote
Old 1st July 2006, 01:24   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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:
http://nsis.sourceforge.net/Invoking...n_compile-time

If your listitems string is too long, you may need to use the special large strings build of NSIS.
Comperio is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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