VSTO ClickOnce 应用程序尝试通过 Visual Studio 本地文件更新?

发布于 2024-12-27 02:35:54 字数 881 浏览 2 评论 0原文

我已经为 Microsoft Word 构建了一个 VSTO 加载项并将其部署到网络服务器。安装顺利进行。当我创建应用程序的更新版本并将其重新部署到网络服务器时,加载项会正确检测到存在新版本并尝试更新它。这就是我遇到以下错误的地方(“xxx”表示我必须审查某些内容):

There was an error during installation
Name: 
From: file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/xxx/xxx/bin/Debug/xxx.vsto

The customization cannot be installed because another version is currently installed 
and cannot be upgraded from this location. To install this version of the customization, 
first use Add or Remove Programs to uninstall this program: xxx. Then install the new
customization from the following location: 
file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/xxx/xxx/bin/Debug/xxx.vsto

在我看来,好像我在项目中留下了某种本地引用,但我找不到任何东西之类的。对此文件的唯一引用位于 bin/Debug 文件夹中生成的 xxx.vbproj.FileListAbsolute.txt 文件中。

不确定这是否也是一个线索,但我看到添加了注册表项,引用它作为 VSTO 项目清单的位置。

I've built a VSTO add-in for Microsoft Word and deployed to a webserver. Installation goes off without a hitch. When I create an updated version of the application and redeploy it to the webserver, the add-in correctly detects that there's a new version and attempts to update it. This is where I'm running into the following error (the "xxx" indicates that I had to censor something):

There was an error during installation
Name: 
From: file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/xxx/xxx/bin/Debug/xxx.vsto

The customization cannot be installed because another version is currently installed 
and cannot be upgraded from this location. To install this version of the customization, 
first use Add or Remove Programs to uninstall this program: xxx. Then install the new
customization from the following location: 
file:///C:/Users/Administrator/Documents/Visual Studio 2010/Projects/xxx/xxx/bin/Debug/xxx.vsto

This appears to me as if I left a local reference of some sort in my Project, but I can't find anything of the sort. The only reference to this file is within the xxx.vbproj.FileListAbsolute.txt file that's generated in the bin/Debug folder.

Not sure if this is also a clue, but I'm seeing Registry Keys added referencing this as the location of the VSTO Project Manifest.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

捶死心动 2025-01-03 02:35:54

ClickOnce 最终没有出现任何问题;似乎存在冲突,因为我首先将其构建为 ClickOnce,然后我的主人要求我也做一个常规的 MSI 安装包,以便他们可以看到差异。当我删除常规安装程序代码后,所有人又变得非常高兴。所以,如果你遇到这个问题,你可能犯了我刚才犯的同样的错误。

There ended up being no issue with ClickOnce; there appears to have been a conflict because I had first built this as a ClickOnce, then my masters asked me to also do a regular MSI install package so they could see the difference. As soon as I removed the regular installer code, all became very happy again. So, if you run into this issue, you may have made the same mistake I just did.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文