Click here to Skip to main content
15,885,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It looks like my service app cannot read from registry's current user. In my service app there is somewhere i set the [user] option to [localsystem] is that why i cannot read from current user? But i can read from HKLM. I cannot use HKLM because it requires Admin rights to write to. Is there any registry hive i can use that enables a limited user to write to?
Posted
Comments
[no name] 19-Aug-14 7:46am    
Services don't have a "current user".
Bernhard Hiller 19-Aug-14 7:53am    
"my service app" - is that Windows Service?
PhilLenoir 19-Aug-14 10:59am    
What is writing to the registry? Where are you deploying? Can you use impersonation with a click-once authorization to write to HKLM?
vbGoof 19-Aug-14 13:35pm    
Thanks Aday.
Hiller, its a windows service.
PhilLenoir, I wanted to write a temporary value somewhere so i thought Current value would be the best option. Click once has always given me errors when i tried to compile my applications. So i always choose to disable it

I guess i could just write that temp value to a file, but i didn't want to use a file. Thank you guys

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900