Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Reading value from txt/ini file (http://forums.winamp.com/showthread.php?t=284283)

Tumi 3rd January 2008 09:25

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

pospec 3rd January 2008 10:25

4.9.2 Registry, INI, File Instructions

Afrow UK 3rd January 2008 14:49

If there are no section headers, like [section] then you can use ConfigRead.

Stu

Tumi 4th January 2008 04:06

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.


All times are GMT. The time now is 04:29.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.