how to get name of addin that is loading

Dec 3, 2013 at 7:17 PM
We are working on a project and need to get a handle on the .xll addin that is being loaded. We hoped to see the addin object get passed to the autoopen event but it does not. We also hopped to find it in the exceldnautil object but it was not. The general objective is to have a self upgrading addin. so we want to get a handle on me or thisaddin (kind of like thisworkbook) so we can uninstall ourselves. We can and have searched the addins list and found ourselves by name but for some reason when we are debugging via visual studio the addin does not show up in the addins list.
Dec 4, 2013 at 7:36 AM
You can get the full path to the .xll like this:
 string myName = (string)XlCall.Excel(XlCall.xlGetName); 
Here are some (oldish) pointers to discussions about implementing unloading of the add-in from the AutoOpen:

There was an initial discussion here:

Then a follow-up here:
because I think I broke something in version 0.29, with a workaround discussed here: