|
|
#1 |
|
Forum King
|
ReadINIStr with quotes
i have an ini-file looking like this
[section] this=this "works" that="this doesn't work" i'm trying to find a way to use ReadINIStr on that without it swallowing the quotes. i've tried all kinds of quotes on the ReadINIStr command, but the string will always lack the quotes. is there any way to fix this? i might escape the quotes when i write them to the ini-file, but due to the history of the installer i'd prefer another way. thanks |
|
|
|
|
|
#2 |
|
Forum King
|
for clarification
code: |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,840
|
code: Note that this assumes that there's only one [section] block. |
|
|
|
|
|
#4 |
|
Forum King
|
thanks, will give this a try
would you say that this is the desired behaviour of readinistr or should it be considered a bug? |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,840
|
As far as I know, the ini functions just call the standard win32 API. My guess is that that would mean it's as desired.
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,775
|
IMHO this is a bug in the windows ini functions... (cmd.exe has the same stupid quote stripping behavior so there has to be a reason, I just don't know what it is)
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|