Re: Updating Add-In via .NET
why not just edit the existing addin?
Re: Updating Add-In via .NET
Quote:
I replace the old add-in file with the new one
How and where do you replace it?
Sid
Re: Updating Add-In via .NET
What I normally do is I copy over the new file from my XP Office 2003 computer and paste it into the folder where I have the add-in file (not the add-ins folder but a separate folder near the excel file that I use it on). I then start the program using VB.NET that uses the following code:
Code:
If Not ContainsAddIn(oXl, "MyAddIn") Then
oAddin = oXl.AddIns.Add(gsMainAddInFullName, True)
End If
oAddin.Installed = True
Where ContainsAddIn is a function that checks if the add-in is already installed already (before I would always just use oXl.AddIns.Add always so the problem existed before I added this code).