Privileges/owner issue when writing in C:\ProgramData\

No, C:\ProgramData, aka FOLDERID_ProgramData, has restricted security settings. Standard users can create files there. But these files are, by default, secured so that only the user that created the file can subsequently modify the file.

The recommended solution is for your installer to create a sub directory of C:\ProgramData for your shared storage. And that sub directory must be given a permissive ACL by the installation program. That is what grants the desired access to all standard users.

I do wonder whether you really need shared writeable data. Normally I’d expect to see shared configuration be something that is specified at install time and modified infrequently by administrators. Most configuration data tends to be per user.

Leave a Comment