[Lazarus] GetAppConfigDir problem

Michael Van Canneyt michael at freepascal.org
Tue May 6 08:59:58 CEST 2008



On Mon, 5 May 2008, Lee Jenkins wrote:

> 
> On Windows, this method returns the application's directory.  IMO, this is wrong 
> since its customary to install applications in the Program Files directory and 
> with tighter locked down XP/2000 and DEFINITELY Vista, this is a problem since 
> you are not usually given permission to write in these destinations now.

If you are using the global flag, this implies usually read-only: 
it is meant to access global installation configuration settings, 
comparable to /etc in Linux/Unix.

The main problem is that the Windows directory structure has become 
so convoluted these days that one directory IMHO is as good as the 
next.

If you know a good Microsoft document describing where application
files are meant to go, I'll be glad to have a look at it and maybe 
change the behaviour.

Michael.



More information about the Lazarus mailing list