Create Registry in both Wow6432Node and normal hiv

2020-03-06 02:20发布

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

Reg Hive

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条回答
▲ chillily
2楼-- · 2020-03-06 03:11

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

查看更多
登录 后发表回答