Sunday, April 11, 2010

Create Registry Value In Local Machine Using C#

Programmer Question

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?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails