I have prepared installer for Excel Ad-in. I have installed manually VSTO and PIA, Coz target machine was giving problem to install them thru installer.
Atleast it didnot work in this way. It copy the dlls from my setup and does nothing else.
When I run from IDE it works fine and also the same setup working on when I run on the same machine where I developed.
I have given the code. Can any one plz guide or help me
Thanks In advance
This from my thisaddin.cs:
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
#region VSTO generated code
this.Application = (Excel.Application)Microsoft.Office.Tools.Excel.ExcelLocale1033Proxy.Wrap(typeof(Excel.Application), this.Application);
#endregion
MessageBox.Show("Excel Opened11111");
}
private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
{
MessageBox.Show("Excel Closed");
}
#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);
}
I used code for Installer.cs from this link :
http://weblogs.asp.net/mnissen/articles/427490.aspx