0
votes

Hi is there a way to programatically set the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Resiliency\DoNotDisableAddinList\

with DWORD= 1

As I learned from this posting (among many others) this prevents Outlook from removing my Addin from Outlook for being slow. Yes, it would be better to design the AddIn for being faster. But as it needs to connect service on the internet this will be hard to achieve. BTW: I have this problem also with many other Addins.

1
Are you accessing a web server synchronously on the main thread while Outlook is starting up? That is a really bad idea...Dmitry Streblechenko

1 Answers

0
votes

You need to use .Net base class libraries to get the job done, the RegistryKey class represents a key-level node in the Windows registry. See How to: Create a Key In the Registry (Visual C#) for more information.

Read more about possible windows registry keys and their values in the Add-ins are user re-enabled after being disabled by Office programs article.