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:
I have also added the .manifest
file and the .vsto
file to the Setup project.
Still stumped!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…