I am working on a window service, from where I have to access users profile specific data from location Environment.SpecialFolder.UserProfile. I have to also access user specific registry key from here HKEY_CURRENT_USER\Software\Microsoft\.
As per my knowledge if service is installed only as per user, then only I can access this above. But imagine a scenario where network admin have to install it on 1000 machine?
Is there a way service will work only for specific installed user profile and without such annoying installation? I am fine if service works for installed user, but installation becomes annoying.
If administrator enter his password will it work for other profiles as well?