LoadBehavior is set to 2 after MSI update

Add-in Express™ Support Service
That's what is more important than anything else

LoadBehavior is set to 2 after MSI update
 
Rob Blackin




Posts: 68
Joined: 2016-02-20
The first installation from the web for our MSI (we're using the .exe bootstrapper) works just fine, then when we do the update using the method mentioned here https://www.add-in-express.com/docs/net-office-deployment-clicktwice.php (under Updating an Office extension via ClickTwice) the new version gets downloaded correctly, installed correctly but when Outlook launches it changes the LoadBehavior to 2.

There is no error on adxregistrator.log neither adxloader.log not even on the Outlook log files (which you have to explicit tell outlook to enable logging).

I need help on this matter because automatic updates are critical to our business.

Thanks!
Posted 15 Jul, 2018 21:51:52 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Rob,

Rob Blackin writes:
when Outlook launches it changes the LoadBehavior to 2


That is, the value is 3 before you start Outlook, correct? If so, this is an indication of an issue at startup. The issue is in the code of the add-in. Say, the add-in produces an exception.

Rob Blackin writes:
There is no error on adxregistrator.log neither adxloader.log not even on the Outlook log files (which you have to explicit tell outlook to enable logging).


Make sure that you look in correct logs: 1) the adxregistrator.log created when you install the update, 2) the adxloader.log created when you start Outlook right after the update. If the adxloader.log is okay, then the issue occurs after the add-in module gets created, say, when it handles AddinInitialize, AddinStartupcomplete, or OnRibbon* events.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jul, 2018 02:09:35 Top
Rob Blackin




Posts: 68
Joined: 2016-02-20
The interesting thing is that it installs and loads from scratch fine.
Then on update, if we close outlook before the install begins, it works fine. If we wait until we get the dialog telling us it needs to close and ask if we want to restart it, that is when this issue happens. Seems to be some timing issue?

any ideas?
Posted 16 Jul, 2018 07:55:31 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Rob Blackin writes:
If we wait until we get the dialog telling us it needs to close and ask if we want to restart it, that is when this issue happens. Seems to be some timing issue?


Maybe the old version of your add-in crashes when you close Outlook in this scenario?

I'm going to test deploying an add-in in your scenario. Do you register your add-in for all users? Please select the "Generate 'adxpublisher.exe.config' file" option and send me that file to the support email address (please make sure your email contains a link to this topic) or copy the file here.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Jul, 2018 08:37:03 Top