在这两个Wow6432Node和正常蜂巢创建注册表 [英] Create Registry in both Wow6432Node and normal hive

查看:718
本文介绍了在这两个Wow6432Node和正常蜂巢创建注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我使用Visual Sudio 2010添加注册表项创建的Outlook加载项的MSI为:





和运行它,它会将注册表项中的 Wow6432Node 虽然Office和Windows是64位。



我运行Windows 7和Office 2010的64位。



然后我出口myAddin注册表配置单元和编辑它,所以它指着 HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins 。打开Outlook和猜测什么....外接程序显示出来。



下一个问题,我该如何添加注册表项以正常和 Wow6432Node 蜂巢在Visual Studio?



这是一个后续的形式这个问题:的安装Outlook COM插件,但在Outlook


解决方案

对于x64办公室,确保您指定正确的上投放 下VS安装项目属性的),以便安装程序知道分配哪些注册表位置。默认上投放是86,这将使你的注册表配置单元到 Wow6432Node A x64操作系统的主机上。



VS安装项目(64处)




上投放= 64




VS安装项目(86处)




上投放= 86



So I created an MSI for Outlook Addin using Visual Sudio 2010 adding registry key as:

and ran it and it puts the registry keys in the Wow6432Node although both Office and Windows is x64.

I run windows 7 and Office 2010 x64.

Then I exported myAddin registry hive and edited it so it pointed to HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins. Opened Outlook and guess what....the addin shows up.

Next question, how do I add the registry keys to both normal and Wow6432Node hive in Visual Studio?

This is a followup form this question: Outlook COM addin installed but not loading in Outlook

解决方案

For x64 Office, make sure you assign the proper TargetPlatform (under VS Setup Project Properties) so that the installer knows which registry location to assign. The default TargetPlatform is x86 which will place your registry hives into Wow6432Node on a x64 OS host.

VS Setup Project (x64 Office)

TargetPlatform = x64

VS Setup Project (x86 Office)

TargetPlatform = x86

这篇关于在这两个Wow6432Node和正常蜂巢创建注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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