I have a C# VSTO Outlook (2016) Add-in published as load on demand. The Add-in create a custom ribbon button when creating a new appointment. When I load Outlook and open a new appointment the ribbon button is not displayed. The Add-in is checked when I go to COM add-ins menu in the developer ribbon but the status is load on demand (not loaded at the moment). In the File -> Options -> Add-ins, it is listed in the inactive section. LoadBehavior is set to 9 in the registry which I believe is what it shoud be after the first time.
When I unchecked the Add-in in the COM Add-ins menu, click OK, re-open, the COM Add-ins menu and check the Add-in again, the custom ribbon button reappear correctly so the code is working properly. I set the add-in as load on demand otherwise it is always disable because of slow loading time despite having an empty ThisAddIn_Startup function. I assume it is because of the loading of the .net runtime as I have seen in other posts. Also, I don't need the add-in loaded at startup as I only need the button when creating a new appointment. If possible, I would prefer avoiding modifying the registry and set the loadbehavior to 3 to force outlook to load the add-in.
Any ideas on how I could achieve that?