Yovav
15th June 2003 15:04 UTC
How can I enumerate INI keys ?
Hi all.
I'm trying to load some "default" options to registry when installing,
I need to get an INI file that can be defined by the user,
so I don't yet know what would the INI key names will be,
is there a way to go through all the INI file keys (one by one) ?
Joost Verburg
15th June 2003 15:27 UTC
You have to write a plug-in or manually call GetPrivateProfileString using the System plug-in.
n0On3
18th June 2003 15:30 UTC
You can read the ini file like a normal file (with FileOpen, FileRead and so on), search for the '=' character and work from there
Yovav
18th June 2003 16:02 UTC
10X 4 the help.
Hi,
I finally found some workaround for that,
I read the ini file in a loop,
and reading the key name + the index
until read fails, the only "problem" with this is that I have to
write the number on the key name (which is not that bad):
[edited by kichik]please attach large scripts. attached below :down:[/edit]
Afrow UK
18th June 2003 16:16 UTC
Use this to remove everything after the "=" sign:
http://nsis.sourceforge.net/archive/...ances=0,11,122
You just need to replace " " with "="
-Stu
kichik
18th June 2003 16:38 UTC
Attached.