简体   繁体   English

Outlook加载项无法在64位OS和MS Office 2007中加载

[英]Outlook Add-in not loading in 64bit OS and MS Office 2007

I have created a Installer for my Outlook add-in. 我已经为Outlook加载项创建了一个安装程序。 It works fine on windows 8 and windows 7 with both 64 bit OS and 32 bit OS and office 2010 and 2013. My problem is with windows 7(64-bit) and MS Office 2007. 它在具有64位OS和32位OS以及Office 2010和2013的Windows 8和Windows 7上都可以正常工作。 我的问题是Windows 7(64位)和MS Office 2007。

Registry entry is created fine in the location : 在以下位置可以很好地创建注册表项:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Outlook\Addins\myAddin

Also load behavior is 3 Load behavior is 3 when outlook is opened first time. 同样,加载行为是3首次打开Outlook时,加载行为是3。 But I noticed one more thing that if i go into inactive add-ins and try to activate my add-in then the load behavior changes to zero. 但是我注意到另一件事,如果我进入非活动加载项并尝试激活我的加载项,那么负载行为将变为零。

I have also checked "VSTO_SUPPRESSDISPLAYALERTS" for any vsto error messages or exception but no exceptions are there. 我还检查了“ VSTO_SUPPRESSDISPLAYALERTS”是否有任何vsto错误消息或异常,但那里没有异常。 Please help me out. 请帮帮我。 Thanks in advance 提前致谢

By default, Outlook 2007 will not load AddIns from HKEY_LOCAL_MACHINE. 默认情况下,Outlook 2007将不会从HKEY_LOCAL_MACHINE加载加载项。 Fortunately Microsoft has a fix for this here: http://support.microsoft.com/kb/976811 幸运的是,Microsoft在这里有针对此的修复程序: http : //support.microsoft.com/kb/976811

I found only one solution to my situation without installing office 2007 SP2 and SP3.. That is HLKM to HKCU registry replication given on following link: 我没有安装Office 2007 SP2和SP3只能解决我的问题。以下链接给出了HLKM到HKCU注册表复制:

http://stackoverflow.com/questions/4819389/c-sharp-vsto-outlook-2007-strange-difference-between-hklm-and-hkcu?rq=1

http://blogs.msdn.com/b/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx
http://blogs.msdn.com/b/mshneer/archive/2007/09/05/deploying-your-vsto-add-in-to-all-users-part-ii.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM