How To Take ownership of registry key with .NET 2.0?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • riteshtechie
    New Member
    • Jan 2010
    • 1

    How To Take ownership of registry key with .NET 2.0?

    I am trying to add following reg file to registry programatically using VB.NET

    http://www.winhelponli ne.com/fileasso/avi_fix_w7.zip

    But I am getting the following error.

    Cannot import J:\Users\Mad Geek\Desktop\av i_fix_w7.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes.
    A search on Google reveals that it is because of the registry Key permission setting for the key I want to edit. I have looked for the same topic earlier in the forum but it is of no help.

    SO now all I want is a code that can help me to add this file to regedit.

    Any help will be appreciated
Working...