Skip to content
⌘ NSIS Forum Archive

Reading value from txt/ini file

4 posts

Tumi#

Reading value from txt/ini file

Hi there.
I need to default my installer folder to a value written in a txt file on the user machine.

I just started using nullsoft today and hoping to get somewhere.

I am able to copy the file over easily using File,
but how would i read my test.ini file to get the value of the different default folders?

My ini on each user machine might look like so
bats=c:\test1\
images=c:\test2\

the values will be different for each user.
The installer is in silent mode.

thank you
Tumi#
Thanks guyz.
both solutions worked excellently, i am able to read from the ini file and pickup the different default file locations and copy my files to the different locations in silent mode.