使用 WiX 安装 VSTO Office 插件
我制作了一个 Excel 插件并尝试使用以下答案安装它: 如何使用 WiX部署 VSTO 3.0 插件?
这种方式行不通,我发现当 Visual Studio 部署插件时,它会在下面创建额外的注册表项HKEY_CURRENT_USER\Software\Microsoft\VSTO\SolutionMetadata。我已将相应的密钥手动添加到我的安装程序中,现在它可以工作了,但我认为这不是一个优雅/安全的方法。我做错了什么?
I've made an Excel addin and tried to install it using this answer:
How do you use WiX to deploy VSTO 3.0 addins?
It doesn't work this way and I figured out that when Visual Studio deploys addins it creates additional registry keys under HKEY_CURRENT_USER\Software\Microsoft\VSTO\SolutionMetadata. I've added corresponding keys manually to my installer and it works now, but i suppose that it's not an elegant/safe method. What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 VSTO 中的一个已知错误(在 SP1 中已修复)。
在这里查看更多信息:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/eac0aa15-96bb-4d21-bd69-a987e6c95f40/vsto-40-addins-issue-hkeycurrentusersoftwaremicrosoftvstosolutionmetadata?forum=vsto< /a>
It is a known bug in VSTO (fixed in SP1).
See more info here:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/eac0aa15-96bb-4d21-bd69-a987e6c95f40/vsto-40-addins-issue-hkeycurrentusersoftwaremicrosoftvstosolutionmetadata?forum=vsto