为所有用户部署 VSTO 加载项

Deploying VSTO Add-In to All Users

我添加了一个 Word 2013 Add-In 项目,用于向 word 添加色带。

我释放它。它为当前用户添加了 word 功能区,但我想将它添加到所有用户。

我在 windows 中设置了注册表。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office.0\Common\General\

设置EnableLocalMachineVSTO=1

但不要将其添加到所有用户。

您需要为所有用户注册加载项。有关详细信息,请参阅 Registry Entries for Application-Level Add-Ins

我建议为加载项创建一个安装程序,以便轻松部署它。 Deploying an Office Solution by Using Windows Installer 文章描述了创建 MSI 安装程序所需的所有步骤。