About the Registry key

Y

Yael

Hi,
I have in a C# project this method to check if my com add-in alredy installed

private static bool IsAlreadyInstalled()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.ClassesRoot.OpenSubKey("MatarotToolbar.Connect");
return key != null;
}


It's return to me allways true, even I did uninstall to check it..any idea??

I tried to write:
"MatarotToolbar.Conne"
Then, it's return false (Connect -- >Conne ).
if I uninstall the com add-in, this key is still in the Registry??

Thank's
 
Top