Nils2000
31st March 2003 09:42 UTC
ReadINIStr fails under NT4
Hi,
I'm stuck with this:
!insertmacro MUI_INSTALLOPTIONS_READ $R4 "Database.ini" "Database" "Database"
StrCmp $R4 "1" InstallAccessDB UnknownDB
this works fine under WinXP but constantly fails when executed under WinNT 4.0.
The file is reserved and extracted (it can be found in the pluginsdir when the installer runs on NT and jumps to UnknownDB, because $R4 is empty).
Please help
kichik
31st March 2003 12:55 UTC
It must be that temp file bug again... Put the INI file in another directory and it should work. Please see other threads about NT4/98 weird bugs for more information.
Nils2000
31st March 2003 16:18 UTC
Arghh - I've found the problem.
The ini-file which NT4 wasn't able to read was in UNICODE. The others were in ASCII-Format.
The ini-file-functions from XP and 2000 are able to handle this, while NT, and i bet 95/98 too, can't.
Now this one was really hard to find ...
kichik
31st March 2003 16:22 UTC
Good catch, thanks.
Nils2000
31st March 2003 16:28 UTC
You're welcome. Maybe this is responsible for some other strange things too.
Joost Verburg
31st March 2003 16:33 UTC
The GetTempFileName problems are not related to this issue.