Create Registry Value In Local Machine Using C#

Posted by Robert on Stack Overflow See other posts from Stack Overflow or by Robert
Published on 2010-04-11T20:49:51Z Indexed on 2010/04/11 20:53 UTC
Read the original article Hit count: 145

Filed under:
|

I'm trying to save an install path to the registry so my windows service will know where my other application was installed.

I'm using visual studio's deployment to create a registry value in HKEY_CURRENT_USER, but my windows service which runs under LocalMachine doesn't have access to that. I then made the installer create a registry value in HKEY_LOCAL_MACHINE, but when I view the registry after the install it appears it never made the value. Any ideas?

© Stack Overflow or respective owner

Related posts about c#

Related posts about deployment