دنبال کننده ها

۱۳۹۷ فروردین ۲۰, دوشنبه

vsto - Excel changes loadbehaviour of add-in

[ad_1]



I created an Excel VSTO add-in, why users can install. However, after using the add-in, the next time Excel is started, the add-in is no longer loaded automatically.



The user can resolve this, by enabling the add-in, but it happens every time, and I would like to stop that.



What happens is that in te registry, the key:
HKEY_CURRENT_USERSoftwareMicrosoftOfficeExcelAddinsTiaGeneratorLoadBehavior is set to 2, which means inactive by default. I can change it back to 3 (load on startup), but after running Excel, it is changed back to 2.



Things I tried so far:
- Adding the location where the add-in is stored to the trusted locations.
- Adding the default add-in location to the trusted locations.
- Changing the load behaviour in the registry.



Nothing seems to work.



I suspect this problem started after adding postsharp to my application, but I am not sure of this.



Does anyone know how I can prvent Excel from changing this loadbehaviour?




[ad_2]

لینک منبع