如何以编程方式设置注册表设置,以防止Outlook删除VSTO加载项 [英] How to programmatically set registry setting to prevent Outlook from removing the VSTO Addin

查看:146
本文介绍了如何以编程方式设置注册表设置,以防止Outlook删除VSTO加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,可以通过编程方式设置以下注册表项:

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

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

DWORD= 1

正如我从此帖子(以及其他很多帖子)中学到的,这阻止了Outlook从Outlook中删除我的Addin的速度变慢.是的,最好将AddIn设计为更快.但是由于它需要连接互联网上的服务,因此将很难实现.顺便说一句:我还有很多其他插件也有这个问题.

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.

推荐答案

您需要使用.Net基类库来完成工作,如何:在注册表(Visual C#)中创建密钥以获取更多信息.

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.

加载项在被Office程序禁用后被用户重新启用.

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.

这篇关于如何以编程方式设置注册表设置,以防止Outlook删除VSTO加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆