Archive: Compile time reading ini file


Compile time reading ini file
Hi all,

I have an INI file that I need to read at compile time (i.e. when the exe is created).

I want to read the file and store everything as a (global?) variable so I can access it later and write registry keys from the values.

Unfortunately, I don't know how to read/store at compile time, especially since the INI file doesn't have any section headings. I can't call functions at compile time, can I? How would I go about doing this?

Thanks for the help! Cheers!

Edit: I suppose I essentially want to read from an ini file and set environment variables or something? But lots of them, like 250+?


I think that could be done with !searchparse.
http://nsis.sourceforge.net/Docs/Chapter5.html#5.4.13

For more complicated matters, check this thread on how to run a vbScript at compiletime:
http://forums.winamp.com/showthread....hreadid=314483


Hmm, yeah, searchparse did it. Thanks :)