Skip to content
⌘ NSIS Forum Archive

How to read a string value in an ini file?

3 posts

cchian#

How to read a string value in an ini file?

Is it possible to read the value of an ini string? I would like to obtain the value of data as in

[program]
data=f:\myprogram\data
tpr#
ReadINIStr $0 "C:\YOUR_INI_LOCATION\NAME.ini" "program" "data"

Now you have the value "f:\myprogram\data" in $0.
cchian#
Thanks for replying, I was able to figure it out some time ago. Anyways, someone else can always benefit from your post.