Click here to Skip to main content
15,904,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir,

Please send me a C# code to search and delete oracel from registry.


[Edit]Capitalization corrected[/Edit]
Posted
Updated 14-Feb-12 21:46pm
v2

1 solution

You can remove entry from registry like ==>
C#
string keyName = @"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run";//Path of Key,You can specify full path
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(keyName, true))
{
    if (key == null)
    {
        // Key doesn't exist. Do whatever you want to handle
        // this case
    }
    else
    {
        key.DeleteValue("Value");
    }
}


For Search an specific value Check This[^]
 
Share this answer
 

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



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