怎么办RegAsm以便它覆盖的32位和64位? [英] How to do RegAsm so that it cover 32-bit and 64-bit?

查看:1520
本文介绍了怎么办RegAsm以便它覆盖的32位和64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用C#编写一个DLL文件,我的系统是Windows 7 64位。
当我申请的RegAsm它不添加注册表,以64位路径,但只将它添加到32位的路径。

I have a DLL file prepared by C# and my system is Windows 7 64-bit. When i apply the RegAsm its not adding the registry to 64-bit path but only adding it to 32-bit path.

"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe" /register /codebase "C:\o.dll"

然后,如果我在的regedit.exe检查我的GUID我知道我有它仅在32位注册表路径: HKEY_CLASSES_ROOT\CLSID\ {...我的GUID是这里找到....}

then if i check my GUID in regedit.exe i see that i have it only in 32-bit registry path: HKEY_CLASSES_ROOT\CLSID\{... my guid is found here ....}

而不是 HKEY_CLASSES_ROOT\Wow6432Node\CLSID\ {...没找到我的GUID ...}

因此,我有其他的问题为了这。任何人都可以请建议是怎么回事,为什么它不是使32位和64位的注册表项?

As a result i have other issues for this. Can anyone please suggest what is going on and why its not making 32-bit and 64-bit registry entries?"

推荐答案

您有它倒退。该Wow6432Node就是32位的具体数据去,使用32位regasm(从框架目录,而不是Framework64目录),让你的组件在Wow6432Node注册。

You have it backwards. The Wow6432Node is where the 32-bit specific data goes. Use the 32-bit regasm (from the Framework directory, not the Framework64 directory) to have your component registered in the Wow6432Node.

这篇关于怎么办RegAsm以便它覆盖的32位和64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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