Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying/Installing an outlook addin

Tags:

c#

outlook

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

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?

EDIT:

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

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:

enter image description here

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

Still stumped!

like image 274
Simon Avatar asked Feb 07 '12 08:02

Simon


1 Answers

I think this tutorial might be useful for your reference.

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

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.

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

like image 168
woodykiddy Avatar answered Oct 14 '22 07:10

woodykiddy