且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何重新添加已删除的VSTO加载项

更新时间:2022-05-23 19:58:54

注册表中的LoadBehaviour是什么?应该是3 ...

What is the LoadBehaviour in the registry? It should be 3...

要查找,请查看

  • 32位Word => Root \ Software \ Microsoft \ Office \ Word \ Addins \ add-in ID
  • 64位Word => Root \ Software \ Wow6432Node \ Microsoft \ Office \ Word \ Addins \ add-in ID

根目录是 HKEY_CURRENT_USER HKEY_LOCAL_MACHINE ,具体取决于是为当前用户还是为每个用户安装了该插件.

where Root is HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE, depending on whether the addin is installed for current user or everyone.

如果LoadBehaviour的值不是3,则将其更改为3并重新启动Word.

If the value for LoadBehaviour is not 3, then change it to 3 and restart Word.

这是关于它的Microsoft文档:

Here is the Microsoft docs about it: Registry entries for VSTO Add-ins

如果仍然无法正常运行,请尝试重新启用,因为可能已硬禁用:

If it still does not work, try to re-enable as it might be hard disabled:

  • 在"管理"框中,将" COM加载项"更改为"禁用的加载项",然后单击"执行".
  • 选择加载项,然后单击启用.点击关闭.现在可以再次加载该加载项...
  • 返回 Manage 框中,将 Disabled Add-ins 更改为 COM Add-ins ,然后单击 Go .
  • 选中禁用的加载项旁边的复选框.点击确定.
  • In the Manage box, change COM Add-ins to Disabled Add-ins, and click Go.
  • Select the add-in and click Enable. Click Close. Now the add-in can be loaded again...
  • Back in the Manage box, change Disabled Add-ins to COM Add-ins, and then click Go.
  • Check the checkbox next to the disabled add-in. Click OK.

这是关于它的Microsoft文档:

Here is the Microsoft docs about it: How to: Re-enable a VSTO Add-in that has been disabled

此外,如果您尚未执行此操作,则值得将此页面上的VSTO_SUPPRESSDISPLAYALERTS设置为0:

Also, if you haven't done this already, it is worth setting VSTO_SUPPRESSDISPLAYALERTS to 0 as described on this page: How do I enable VSTO error / display alerts?

如果上述方法均无济于事,则值得通过添加或删除程序 Office 进行在线修复.

If none of the above helps, then it is worth doing a Online repair of Office from Add or Remove Programs.