Create Registry in both Wow6432Node and normal hive

与世无争的帅哥 提交于 2019-11-30 18:06:04

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/13070586/create-registry-in-both-wow6432node-and-normal-hive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!