How about this. Will check to see if registry key exists.
using Microsoft.Win32;
...
string keyName=...;
string valueName=...;
object defaultValue=...;
object o=Registry.GetValue(keyName,valueName,defaultValue);
if (o!=null) {
// Key does not exist
}
else {
// Do something with key
}