Board index » delphi » Vista and Inifiles
John
Delphi Developer |
John
Delphi Developer |
Vista and Inifiles2007-08-13 11:41:11 PM delphi259 Hello, I use to store my app settings in an inifile. Now I cannot save inifile (even if I am an administrator). Any idea ? Is there some folders where we can save or write inifiles ? Thanks John |
John Venture
Delphi Developer |
2007-08-13 11:57:14 PM
Re:Vista and Inifiles
One more thing,
Very strange i have this problem with app created with Delphi 2007 update, i have no problem with same app compiled under D7... Any idea ? thanks |
Dan Downs
Delphi Developer |
2007-08-14 12:25:28 AM
Re:Vista and InifilesQuoteIs there some folders where we can save or write inifiles ? \Documents and Settings\All Users\Application Data\(YourAppNameHere)\ DD |
Jonathan Benedicto
Delphi Developer |
2007-08-14 12:33:39 AM
Re:Vista and Inifiles
Dan Downs writes:
QuoteI do believe the Program Files are now off limits and you're settings CSIDL_APPDATA location, then create a subfolder in that directory, and store your files in there. HTH Jon |
Jeff Hamblin
Delphi Developer |
2007-08-14 01:06:22 AM
Re:Vista and Inifiles
"Jonathan Benedicto":
QuoteDan Downs writes: you will need to set permissions because the default inherited rights are read-only. For security, you should limit write rights as much as possible. I would create a folder such as: \[CSIDL_APPDATA]\YourCompany\YourApp\Data with your installer and set write permissions. Then put only files there that MUST have read-write for all users. Be sure your app doesn't do anything with your allusers ini file that could be hijacked by malware. |
Remy Lebeau (TeamB)
Delphi Developer |
2007-08-14 02:28:59 AM
Re:Vista and Inifiles
"Dan Downs" <XXXX@XXXXX.COM>writes
QuoteI do believe the Program Files are now off limits folder. Quoteyou're settings should either go in the registry or in "Application Data" folder available. Gambit |