为所有用户部署从Visual Studio 2010创建的Outlook 2007外接程序 [英] Deploying a Outlook 2007 Addin created from Visual Studio 2010 for All Users

查看:91
本文介绍了为所有用户部署从Visual Studio 2010创建的Outlook 2007外接程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Windows 7中的所有用户部署Outlook 2007加载项.我使用Visual Studio 2010开发了该加载项,只是为了在加载时显示消息框.

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

由于据说使用Publish(ClickOnce)功能创建安装程序不会将加载项安装到所有用户,因此我尝试按照给定的步骤创建MSI安装项目, http://msdn.microsoft.com/en-us/library/ff937654.aspx#Create

由于我仅以Outlook 2007为目标,因此只执行了配置注册表的步骤.

一旦我创建了安装程序并安装了它(选择所有人"),该外接程序最初就不会在Outlook中运行.当我在Trust Center中检查它时,我可以在非活动应用程序加载项"部分看到我的加载项.

一旦我检查了系统注册表(使用regedit),所有注册表项也都正确地包含在HKEY_LOCAL_MACHINE下.

(当我安装它时,仅选择我自己",该插件即可正常工作.)

任何人都可以帮助我使此功能适用于所有用户. 谢谢.

解决方案

教程的第二部分显示了如何在安装过程中处理信任.您可以在此处找到它.. /p>

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.

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.

解决方案

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

这篇关于为所有用户部署从Visual Studio 2010创建的Outlook 2007外接程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆