如何注销我的.NET程序集时,它不再是在同一个位置? [英] How to unregister my .net assembly when it's no longer in the same location?

查看:137
本文介绍了如何注销我的.NET程序集时,它不再是在同一个位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个公司注册为COM互操作,因此在HKLM \ Software \ Classes下\ CLSID一个dll [我GUID] \ InprocServer32的[我的版本没有任何] \ codeBase的它拥有注册DLL的路径。不过,我重新安排我的文件夹结构,这样的路径不再正确。有没有注销的方式,DLL,而不把它回来,然后注销,然后删除该文件了吗?

I have a dll that's registered for com interop, so under HKLM\Software\Classes\CLSID[my guid]\InprocServer32[my version no]\Codebase it has the path of the registered dll. However, I've rearranged my folder structure so that path is no longer correct. Is there a way of unregistering that dll without putting it back, then unregistering, then removing the file again?

而如果我没有这方面的DLL更多,或只有一个不同的版本号?

And what if I don't have that dll any more, or only have one with a different version number?

推荐答案

不同的版本号(一般)并不重要。只要新的DLL包含所有出现在旧版本的GUID,这将是未注册正确(使用新的使用regasm,EXE)。当然,重新注册组件COM互操作不当会搬迁所需的注册表项。

Different version numbers (generally) do not matter. As long as the newer DLL contains all the GUIDs which appear in the older version, it will be unregistered properly (using the new one with regasm,exe). And of course, reregistering the assembly for COM interop will properly relocate necessary registry keys.

这篇关于如何注销我的.NET程序集时,它不再是在同一个位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆