Skip to content
⌘ NSIS Forum Archive

Compile time reading ini file

3 posts

Lucky75#

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+?
MSG#
I think that could be done with !searchparse.


For more complicated matters, check this thread on how to run a vbScript at compiletime:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.