title: Deploying/Installing an outlook addin
body: <p>I am trying to install my Outlook Addin on client computers.</p>
  
  <p>Unfortuantely, the Add-in can never be 'Enabled' it is always shown in the Disabled add-in section.</p>
  
  <p>Is there a simple, step by step guide on how to create the correct setup application and install an outlook addin?</p>
  
  <p>EDIT:</p>
  
  <p>Ok so ive gone back to basics, but i still cant get it to install correctly.</p>
  
  <p>I create a new Outlook Addin using VS2010 project wizard.</p>
  
  <p>It generates files etc, and then i change my code like so:</p>
  
  <pre><code>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
  
          /// &lt;summary&gt;
          /// Required method for Designer support - do not modify
          /// the contents of this method with the code editor.
          /// &lt;/summary&gt;
          private void InternalStartup()
          {
              this.Startup += new System.EventHandler(ThisAddIn_Startup);
              this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
          }
  
          #endregion
      }
  </code></pre>
  
  <p>If i install this one, i get the same error message:</p>
  
  <pre><code>Not Loaded. The Managed Add-in Loader failed to initialize.
  </code></pre>
  
  <p>When installing the Add-in I ensure the registry keys are created:</p>
  
  <p><img src="https://i.stack.imgur.com/Uf7UN.jpg" alt="enter image description here"></p>
  
  <p>I have also added the <code>.manifest</code> file and the <code>.vsto</code> file to the Setup project.</p>
  
  <p>Still stumped!</p>