diff --git a/core/extensions/OutOfProcCOM/COMRegistration/LocalServer.cs b/core/extensions/OutOfProcCOM/COMRegistration/LocalServer.cs index f37bc56438a..4e20317588d 100644 --- a/core/extensions/OutOfProcCOM/COMRegistration/LocalServer.cs +++ b/core/extensions/OutOfProcCOM/COMRegistration/LocalServer.cs @@ -35,7 +35,7 @@ public static void Unregister(Guid clsid, string tlbPath) // Unregister local server string serverKey = string.Format(KeyFormat.LocalServer32, clsid); - Registry.LocalMachine.DeleteSubKey(serverKey, throwOnMissingSubKey: false); + Registry.LocalMachine.DeleteSubKeyTree(serverKey, throwOnMissingSubKey: false); // Unregister type library TypeLib.Unregister(tlbPath);