By default : Registry has been disabled
So i get “registry editing has been disabled by your administrator”
In my application i want to let users access registry when the app runs and deny when app stops.
Looking forward for your advice on this.
By default : Registry has been disabled So i get registry editing has been
Share
To allow users to edit some registry settings that are normally not accessible, you need to use impersonation. I.e. you need to have your application run as a different user, one with more priviledges.
The easiest way to achieve this it to write a .net Windows Service that runs with higher priviledges. This service can still control what registry settings are allowed to change.
So your users start your Winforms app which communicates with your Service to do the actual changes in the registry.
This does require the user (or operations) to install the service on the machine with admin rights.