Can I write an AddIn in MS Word that included another AddIn?
I agree with divo, the first step would be to add exception handling / logging to prevent addin from being added. You can also refer to this article
Debugging in Application-Level Projects
However, I also had issues with the append getting disabled somehow without throwing any exceptions. If the above approaches don't work, you can always go and have another program, force the LoadBehavior of your add-on to be 2 to 3, which should re-enable it.
source to share
What add-in technology are you using? VSTO? Which version of Office are you using?
In general, you can do what you want. However, the reason Office disables add-ins is because the add-in threw an unhandled exception. In this case, Office will set the value LoadBehavior
in the registry to 2.
It might be better to analyze and handle the underlying problem causing the exception.
source to share