I coded a windows service in Visual Studio 2005, I have the installer with it.
The registry keys for the service are created in System\controls et001\MyService .
The service is installed with LocalService account.
Problem is, after installing it, my service tries to add a key into that registry key location (intentionally added in the code), and it always fails because it does not have permissions, so I have to manually open the registry key and set permissions to LocalService, and start the service again.
Is there any way to set the permissions in the registry key at the installation process of the service?
The registry keys for the service are created in System\controls et001\MyService .
The service is installed with LocalService account.
Problem is, after installing it, my service tries to add a key into that registry key location (intentionally added in the code), and it always fails because it does not have permissions, so I have to manually open the registry key and set permissions to LocalService, and start the service again.
Is there any way to set the permissions in the registry key at the installation process of the service?
Comment