|
|
#1 |
|
Member
Join Date: Jul 2006
Posts: 82
|
StrCmp "" is different of StrCmp " "
Remember this.
After many (...) years using Nsis, I Almost suicide my own sef by my self (leaking brain) because of this. ![]() StrCmp "" is different of StrCmp " " |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
"" is nothing. " " is a space.
-Stu |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2006
Posts: 82
|
Yes. The point is:
When using installoptions, you (I) write: WriteIniStr x.ini "Field 1" State "" But installoptions writes -> State=" " If ReadIniStr reads a space, why don't read '" "' ? (don't answer this. It's just a cry) I'm writing this just as one thing to remember. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
So InstallOptions supposedly writes a space " " but when you read from it with ReadINIStr, it's ""?
Perhaps InstallOptions puts a null-escape (\0) character there which usually looks like whitespace in a text editor (in Notepad2 however it comes out as NUL). -Stu |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|