I’m trying to create and write some registry keys and on Windows 10, it seems to be failing. I get RegistryAccessException errors. Well, not me but my customers. I don’t have Win10 installed yet. My code works fine in Win7 but getting these errors in Windows 10.
What needs to be done to write registry keys in Windows 10?
And I only need to write this key once. From then on, I read from it. So I don’t need elevated permissions whenever the app is run. Are there other keys that don’t need admin permissions?
HKCU is fine. There is also a difference between being an admin user and running an app as admin. As an admin user you’ll be asked if it is ok to run the app, none admin users will also need to provide admin credentials.