Windows 7 problem with CSIDL_COMMON_APPDATA

Giganews Newsgroups
Subject:Windows 7 problem with CSIDL_COMMON_APPDATA
Posted by: Markus Humm
Date:Fri, 25 Jun 2010

Hello,

during installation my app creates a directory under CSIDL_COMMON_APPDATA and puts some files there.
On first startup it has to migrate data from one in another db file sitting there and afterwards copy over one
of those db files over the other.

Under Windows 7 this fails with access denied and looking at the folder permissions only admins may write
into that folder.

So what to do now? Where to place data needed for every user? Security is a fine thing, but only if it doesn't
break normal behaviour without showing a clear migration path...

Best regards

Markus

Replies