Outlook 的 COM 插件尝试在启动时自行安装

发布于 2024-08-27 17:20:15 字数 625 浏览 3 评论 0原文

我有一个 Outlook 插件,我已经开发了一段时间,但遇到了问题。如果我的计算机有两个“管理员”用户(称为用户 A 和用户 B),则只要同一个用户尝试运行该插件,该插件就可以正常安装和运行。也就是说,如果用户A安装了该插件,那么用户A使用是没有问题的。

当我们看到以下场景时,就会出现奇怪的行为:用户 A 安装插件(对于所有用户),用户 B 启动 Outlook 并观察到插件正在尝试再次安装自身。如果用户 B 取消“安装”,他就可以继续使用该插件了。

现在,我使用 Office 的 注册表密钥传播以进行“所有用户”安装, 我检查了注册表是否有重复项,但没有发现任何重复项。我什至使用 officeins 工具来尝试检测是否存在任何重复,但没有找到。

我真的很困惑为什么插件会尝试一遍又一遍地安装自己。有谁知道为什么会发生这种情况?

I have an outlook addin that I have been developing for some time now, and am experiencing a problem. If I have a computer with two 'administrator' users (call them User A and User B), the addin installs and runs just fine as long as the same user tries to run it. In other words, if User A installs the addin, then User A has no problem using.

The strange behavior comes in when we see the following scenario: User A installs the addin (for all users), User B launches outlook and observes that the addin is trying to install itself yet again. If User B cancels out of the 'install', he can then go and use the addin just fine.

Right now, I use office's registry key propagation to do an 'all users' install,
and I inspected the registry for any duplications and found none. I even used the officeins tool to try and detect if there was any duplication going on, and found none.

I'm really bewildered as to why the addin would try to install itself over and over again. Does anyone know why this might be happening?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一梦浮鱼 2024-09-03 17:20:15

这与注册表中缺少垃圾有关(至少在我的情况下)。使用 Windows 中的“事件查看器”将允许您查看 MSI 安装程序日志,该日志指向缺少的注册表项。

这是一篇关于为所有用户安装 Outlook 插件的精彩文章:

http://blogs.msdn.com/mshneer/archive/2007/09/04/deploying-your-vsto-add-in-to-所有用户-part-i.aspx

This has to do with junk being absent from the registry (at least in my case). Using the 'Event Viewer' in windows will allow you to look at the MSI installer logs that point to what registry key was missing.

Here is a great article about installing an outlook addin for all users:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文