At the point this question gets asked, your add-in is not loaded and your code is not running.
So I think you’d need an installer (or other way to write to the registry to install the add-in) to skip that.
Here is a template project for making an installer for an Excel-DNA add-in:
Excel-DNA/WiXInstaller: Template project for a WiX-based installer for an Excel-DNA add-in
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/exceldna/a401a791-b5cc-4e45-afb8-5096c96f38d5n%40googlegroups.com.