当我的电脑上有多个时,如何确定我的产品的.net组件中的哪一个已注册?

时间:2021-05-06 04:06:21

I have the code for various versions of a software product I work on on my machine. The product includes one or more assemblies that are registered for com interop. How can I determine which one is currently registered?

我有我在我的机器上工作的各种版本的软件产品的代码。该产品包括一个或多个为com interop注册的程序集。如何确定当前注册的是哪一个?

1 个解决方案

#1


If you know the GUID of your assembly, look under HKCR\CLSID\{your guid}\InprocServer32. The Assembly key will have a value including the version.

如果您知道程序集的GUID,请查看HKCR \ CLSID \ {your guid} \ InprocServer32。 Assembly键将包含一个包含版本的值。

If you only have the ProgId, you can just search the registry for that string which will tell you the GUID.

如果您只有ProgId,则可以在注册表中搜索该字符串,该字符串将告诉您GUID。

#1


If you know the GUID of your assembly, look under HKCR\CLSID\{your guid}\InprocServer32. The Assembly key will have a value including the version.

如果您知道程序集的GUID,请查看HKCR \ CLSID \ {your guid} \ InprocServer32。 Assembly键将包含一个包含版本的值。

If you only have the ProgId, you can just search the registry for that string which will tell you the GUID.

如果您只有ProgId,则可以在注册表中搜索该字符串,该字符串将告诉您GUID。