Deleting file from C:/ProgramData in Windows 7 does not really delete the file?
I have a little problem with my application. Application stores a SQLite database in C:\ProgramData\ProgramName\
folder on first run. I wanted to test if I delete the database, can application create a new database. On startup, I check if file exists using FileExists(filename)
function from SysUtils. But it returns always True, even if I deleted the ProgramName folder.
If I use another folder (for exa开发者_如何学Gomple %AppData%), then it's all OK.
What I'm missing here? Why FileExists function returns always True?
Standard users (and that includes administrators when UAC is active) do not have delete rights to that location.
You need to find a different location to store the file if you need standard users to be able to delete it.
精彩评论