Archive: ReadINIStr fails under NT4


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


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.


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 ...


Good catch, thanks.


You're welcome. Maybe this is responsible for some other strange things too.


The GetTempFileName problems are not related to this issue.