部署/安装插件前景 [英] Deploying/Installing an outlook addin

查看:177
本文介绍了部署/安装插件前景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在客户端计算机上安装Outlook的加载项。

I am trying to install my Outlook Addin on client computers.

Unfortuantely,外接永远不能已启用它总是在禁用的加载显示-in部分。

Unfortuantely, the Add-in can never be 'Enabled' it is always shown in the Disabled add-in section.

有一个简单的,一步一步的指导如何创建正确的安装应用程序并安装一个插件前景?

Is there a simple, step by step guide on how to create the correct setup application and install an outlook addin?

编辑:

确定这样的香港专业教育学院又回到基础知识,但我仍然不能得到它正确地安装

Ok so ive gone back to basics, but i still cant get it to install correctly.

我使用VS2010项目向导创建一个新的Outlook外接程序

I create a new Outlook Addin using VS2010 project wizard.

它生成的文件等,然后我改变,像这样我的代码:

It generates files etc, and then i change my code like so:

namespace OutlookAddIn1
{
    public partial class ThisAddIn
    {
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            MessageBox.Show("Worked");
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }

        #endregion
    }

如果我安装这一项,我得到同样的错误信息:

If i install this one, i get the same error message:

Not Loaded. The Managed Add-in Loader failed to initialize.

在安装外接我确保生成密钥注册表:

When installing the Add-in I ensure the registry keys are created:

我还添加了名为.manifest 文件和 .vsto 文件到安装项目。

I have also added the .manifest file and the .vsto file to the Setup project.

还是难倒!

推荐答案

我觉得这个教程可能是供大家参考有益。

I think this tutorial might be useful for your reference.

http://msdn.microsoft.com /en-us/library/ff937654.aspx

另外,还有一些你可能想看看一些其他的东西。首先,看你是否有任何抛出COM异常当您启动Outlook中加载项。通常插件,如果将它抛出启动时的错误不会自动关闭。而且你也想看看 LoadBehavior的注册表项,看看你有在那里什么样的价值观。

Also, there are a few other things that you might want to check out. First, see if you have any COM exceptions thrown when you start up Outlook Addin. Normally addin will not be disabled automatically if it throws errors on startup. And you also want to have a look at loadBehavior registry key and see what values you got in there.

有关LoadBehavior的的注册表项的详细信息,请参考:的 http://msdn.microsoft.com/en-us/library/bb386106(VS.100)的.aspx

For details of LoadBehavior reg key, please refer to: http://msdn.microsoft.com/en-us/library/bb386106(VS.100).aspx

这篇关于部署/安装插件前景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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