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.
Coordinator
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:
http://groups.google.com/group/exceldna/browse_thread/thread/78c1c16bb43e3ec2/

Then a follow-up here: http://groups.google.com/group/exceldna/browse_thread/thread/3711403e2cb96513
because I think I broke something in version 0.29, with a workaround discussed here:
http://groups.google.com/group/exceldna/browse_thread/thread/57f13ca6180eb7f7.

-Govert