Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Editing Vista Registry, How can we edit System Registry through C# code in Vista ?
 

Editing Vista Registry, How can we edit System Registry through C# code in Vista ?

Hi there,

I want to set an application as service on Vista through C# application.
The vista is not allowing me to access the System/CurrentControlSet/Services key through code.
I am getting Access Denied !

Any help to overcome this is welcomed.


Thanks in advance...
AltaVista
AltaVista  Wednesday, September 17, 2008 9:50 AM

Hi AltaVista,

To edit registry in Vista needs administrator permissions. So your application needs to run under a user which has administrator permissions. We can right click your application, and choose “run as administrator� I’d like to remind you that editing the registry is a dangerous action. Please be careful when dealing with it.

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Saturday, September 20, 2008 1:19 PM

Hi AltaVista,

To edit registry in Vista needs administrator permissions. So your application needs to run under a user which has administrator permissions. We can right click your application, and choose “run as administrator� I’d like to remind you that editing the registry is a dangerous action. Please be careful when dealing with it.

Best Regards,

Bruce Zhou

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Bruce.Zhou  Saturday, September 20, 2008 1:19 PM

You can use google to search for other answers

Custom Search

More Threads

• Data Source
• Whidbey!
• Terrarium can't connect to server
• Random Tip
• Windows service to Lock accounts in Database and Active Directory
• DataGridViewTrackBarColumn
• Terrarium server is experienceing temporty difficulities
• How could i use the usercontrol to call the Window Form's Componet.
• FTP In window form
• * BUG - I though the Nox and Asgard were nasty bugs.