为所有用户部署从 Visual Studio 2010 创建的 Outlook 2007 外接程序

发布于 2024-12-23 23:36:38 字数 837 浏览 4 评论 0原文

我正在尝试为 Windows 7 中的所有用户部署 Outlook 2007 插件。我使用 Visual Studio 2010 开发了该插件,以便在加载时显示一个消息框。

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            MessageBox.Show("test addin");
        }

由于据说使用发布(ClickOnce)功能创建安装程序不会将插件安装给所有用户,因此我尝试按照以下给出的步骤创建一个 MSI 安装项目, http://msdn.microsoft.com/en-us/library/ ff937654.aspx#Create

由于我仅针对 Outlook 2007,因此我仅执行了配置注册表之前的步骤。

创建设置并安装它(选择“Everyone”)后,该插件最初不会在 Outlook 中运行。当我在信任中心检查它时,我可以看到我的插件列在“非活动应用程序插件”部分中。

在此处输入图像描述 一旦我检查了系统注册表(使用 regedit),所有注册表项也都正确包含在 HKEY_LOCAL_MACHINE 下。

(当我安装它时选择“仅我”,该插件工作正常。)

任何人都可以帮助我让这个对所有用户都有效。 谢谢。

I'm trying to deploy a Outlook 2007 addin for all users in windows 7. I developed the addin using visual studio 2010 to simply to show a message box on load.

private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            MessageBox.Show("test addin");
        }

Since it is stated that creating a installer using Publish(ClickOnce) feature will not install the addin to all users, i tried creating an MSI setup project following the steps given in,
http://msdn.microsoft.com/en-us/library/ff937654.aspx#Create

Since I'm targeting only Outlook 2007, I executed only the steps up to configuring the registry.

Once I created the setup and installed it (selecting Everyone), the addin does not run initially in outlook. when I checked it in Trust Center, I could see my addin listed in the Inactive Application Addins Section.

enter image description here
Once I checked in the system registry(using regedit), all the Registry Key are properly included under HKEY_LOCAL_MACHINE as well.

(When I install it Selecting Only me, the addin works fine.)

Can anyone please help me to get this working for all users.
Thanks.

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

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

发布评论

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

评论(1

梦里°也失望 2024-12-30 23:36:38

本教程的第二部分展示了如何在安装过程中处理信任。您可以在此处找到它。

There is a second part to the tutorial which shows how to handle trust as part of the installation. You can find it here.

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