wpf 将 VSTO 加载项部署到所有用户

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33230794/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 13:29:06  来源:igfitidea点击:

Deploying VSTO Add-In to All Users

c#wpfvisual-studio-2012vstooffice-2013

提问by ar.gorgin

I add a Word 2013 Add-Inproject for add ribbon to word.

我添加了一个Word 2013 Add-In将功能区添加到 word的项目。

I Release it. it added ribbon to word for current user, but i want add it to all user.

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

I set registry in windows.

我在 Windows 中设置了注册表。

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

Set EnableLocalMachineVSTO=1for it.

设置EnableLocalMachineVSTO=1它。

but don't add it to all user.

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

采纳答案by Eugene Astafiev

You need to register the add-in for all users. See Registry Entries for Application-Level Add-Insfor more information.

您需要为所有用户注册加载项。有关详细信息,请参阅应用程序级加载项的注册表项

I'd suggest creating an installer for the add-in to get it deployed easily. The Deploying an Office Solution by Using Windows Installerarticle describes all the required steps for creating MSI instanllers.

我建议为加载项创建一个安装程序,以便轻松部署。在部署Office解决方案通过使用Windows安装程序文章介绍了创建MSI instanllers所有必要的步骤。