我在部署 Visio 插件时遇到一些问题。 运行 VSTO 文件可以在我的计算机上运行,但每当我尝试将其移动到任何其他用户的计算机时,它都会在部署时引发错误。 我认为这可能是我在项目属性中设置的设置,因此我创建了一个全新的插件项目并将其设置为在启动时显示消息框。 我收到的错误是:
An error occured during customization install.
The expected element "addIn" was not found in the XML.
最佳答案
这是由 Clickonce 的问题引起的。 我通过使用 MSI 安装插件找到了解决方法。 This Guide提供了很多帮助。
取自有关 msi 安装的注册表设置的部分:
It is important to note the ‘|vstolocal’ value appended to the end of the Manifest value. This informs the VSTO runtime that it is locally installed and to not invoke the ClickOnce installer.
关于ms-office - 部署 VSTO Office 插件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2728794/