I work a lot to ensure that my product works without problems in Windows 7. The problem is that there is a small set of global (non-user) application parameters that all users should be able to change.
In previous versions I used HKLM\Software\__Company__\__Product__for this purpose. This allowed Power Users and administrators to change the registry key, and everything worked correctly. Now that Windows Vista and Windows 7 have this UAC feature, by default, even the Administrator cannot access the write key without elevation.
A stupid solution, of course, would mean adding an option requireAdministratorto the application manifest. But this is really unprofessional, since the product itself is very far from the tasks associated with administration. So I need to stay with asInvoker.
Another solution may mean software enhancement at times when write access to the registry key is required. Not to mention the fact that I do not know how to implement this, it is also quite inconvenient. This interferes with the normal user experience so much that I’m unlikely to consider it an option.
What I know should be relatively easy to do is add write access to the specified registry key during installation. I created a separate question for this . It is also very similar to accessing a shared file to save settings.
, , , , . ?