public bool DeleteRegistryKey(Microsoft.Win32.RegistryKey regHive, string regKey, string regName)
{
bool response = false;
Microsoft.Win32.RegistryKey key = regHive.OpenSubKey(regKey, true);
if (key == null)
{
response = true;
}
else
{
key.DeleteValue(regName);
}
response = true;
return response;
}
THAT'S NOT DELETING A KEY.. IT'S DELETING A VALUE.. >_<
ReplyDelete