Where to write to the Windows registry shared data with UAC enabled?

0 like 0 dislike
6 views
Starting with Windows Vista to this operating system appeared User Account Control, which when enabled, prevents writing to the HKLM branch of the registry, even applications running on administrator. Our app kept General settings (independent of users) HKLM\\Software\\OurCompany\\OurProduct\\Settings. Now there can not write. Writing to HKCU does not want a generic settings common to all users.


Question: so where it to write? Somewhere there is a section available to read and write for all users? (Please do not offer to write to the file — there are reasons).
by | 6 views

4 Answers

0 like 0 dislike
Actually, the use of such preferences must always ask permission from the admin (via UAC). But if you really want — you can break the guidelines and just change the ACL's for the key in HKLM during installation.
\r
For that of You ever write in The Old New Thing
by
0 like 0 dislike
If the settings are the same for the entire time of using the app, you need to write them using the installer. The installer in any case, requests elevation via UAC rights.
\r
If these options are someone of the users want to change, it will affect all other users of this computer and this program. So without UAC again anywhere — the user should be aware of what he's doing.
\r
The answer is no. Make friends with UAC and not invent crutches.
by
0 like 0 dislike
What about virtualization? HKLM\\Software is included in the list virtualisierungs locations.
\r
OSzone: Protecting system files with UAC virtualization
\r
Microsoft: articles for developers on Windows Vista: requirements for the development of applications from the point of view of the mechanism of control user account (UAC)help File → User Account Control → References
by
0 like 0 dislike
Why not in the config file in %appdata%?
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
0 like 0 dislike
6 answers
asked Mar 23, 2019 by Hello1
110,608 questions
257,186 answers
0 comments
1,105 users