我有一个用 Visual Studio 2008 编写的 Outlook 2003 加载项。它所做的只是在加载时显示一个消息框。我正在使用安装包创建一个用于安装的 msi
我已经解决了安全 caspol 问题。我在客户端上安装了 PIA 和 VSTO。我的设置设置为为所有用户安装。
如果我将其安装在客户端计算机上,它会创建 HKCU 注册表配置单元,并且非常适合安装用户,并出现在 COM 加载项对话框中,但对任何其他登录用户不起作用。
我更改了安装包以放置注册表hive 在 HKLM 中,现在它不适用于任何用户,包括安装用户,并且它不会出现在 COM 加载项对话框中。
我缺少什么?我在网上读了又读了这么多,它开始让我发疯……
提前干杯。
I have an Outlook 2003 add-in written in Visual Studio 2008. All it does is display a msgbox when it loads. I am using a setup package to create me an msi for install
I have got the security caspol issue sorted. I have the PIA and the VSTO installed on the client. My setup is set to install for all users.
If I install it on a client machine it creates the HKCU registry hive and works perfectly for the installing user and appears in the COM add-ins dialog but doesnt work for any other user that logs in.
I changed the setup package to put the registry hive in HKLM and now it doesn't work for any user, including the installing user and it does not appear in the COM add-ins dialog.
What am I missing? I've read and re-read so much on the net it's starting to drive me crazy.....
Cheers in advance.
发布评论
评论(2)
较新版本的 Office 不会读取 HKCU 密钥,而是读取 HKCU 下这个奇怪的复合密钥。
Misha Sneerson 有一篇很好的文章(包含 2010 年的更新)
http://blogs.msdn.com/b/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx< /a>
Newer versions of office don't read that HKCU key, Instead, they read this weird composite key under HKCU.
Misha Sneerson has a good article (with updates for 2010) here
http://blogs.msdn.com/b/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-all-users-part-i.aspx
您是否记得将安装项目中的“InstallAllUsers”属性设置为 true?这几乎没有记录,在过去的三天里,我一直在努力解决与您描述的完全相同的问题,直到我注意到我忽略了这一点。将其设置为“true”,现在我的项目安装到所有用户:)
http://the-simple-programmer.blogspot.com/2011/02/deploy-visual-studio-2008-vsto-add-in.html
Have you remembered to set the "InstallAllUsers" property in the setup project to true? This is pretty much undocumented, and I have just spent the last three days banging my head against exactly the same problem you describe until I noticed that I had overlooked this. Set it to "true" and now my project installas to all users :)
http://the-simple-programmer.blogspot.com/2011/02/deploy-visual-studio-2008-vsto-add-in.html