At 02:30 PM 6/24/00 +0200, you wrote:
>Hi,
>
>While testing the Sims I came across the following:
>
>Setup.exe does:
>
>       GetCurrentDirectory() -> returns E:\, my CD ROM drive.
>       GetPrivateProfileStringA("SKU","SKU","MISSING",buf,buflen,"MAXIS.INI")
>
>MAXIS.INI is only in E:\, the program fails if it returns "MISSING".
>
>=> the profile code also checks the current directory.
>
>I am not sure whether:
>- Does it check the current directory first and then %windir% ? 
>- If it does not find a file, does it create the .ini file in the current
>  directory or in %windir% ? 
>
>Could someone please check this under real windows?

As far as I can see, Win32 conforms to the doc: if a full path is
specified, it is searched; else the windows directory is searched.
The current directory is not searched (unless it's the Win directory)

Does your installer use WinExec or CreateProcess ? If yes, check if 
the .ini file could not be created by the first process; in this case
the .ini can be not flushed yet when the second process tries to read it.

Gerard

Reply via email to