且构网

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

VSTO 加载项控件不会自动出现

更新时间:2023-12-05 20:39:28

您需要添加指向 Office 清单(vsto 文件)的注册表项(在您的安装项目中)em>) 进入 Office 注册表配置单元.请参阅 这篇文章 描述了如何为所有用户或仅当前登录的用户执行此操作.有关应用程序级插件所需的注册表项,请参阅 MSDN 参考.>

单用户配置单元

You need to add the registry entry (in your setup project) pointing to the office manifest (vsto file) into the Office registry hive. See this post describing how to do for all users or just the current logged in user. See MSDN reference for registry entries required for application-level addins.

HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\[add-in ID]

所有用户 Hive(x86 操作系统上的 x86 Office)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\[add-in ID]

所有用户 Hive(x64 操作系统上的 x86 Office)

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Word\Addins\[add-in ID]

所有用户 Hive(x64 操作系统上的 x64 Office)

HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Word\Addins\[add-in ID]