Skip to content

Commit

Permalink
OutOfProcCOM: Change LocalServer COM unregistration to delete entire …
Browse files Browse the repository at this point in the history
…CLSID folder

Fixes dotnet#5960 where an empty HKCR\CLSID\{AF080472-F173-4D9D-8BE7-435776617347} folder still remains after unregistration
  • Loading branch information
Fredrik Orderud committed Apr 23, 2024
1 parent e377834 commit 46505b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 46505b3

Please sign in to comment.