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

时间:2012-01-15 03:33:32

标签: vb.net visual-studio-2010 vsto clickonce

我为Microsoft Word构建了一个VSTO加载项并部署到了Web服务器。安装顺利进行。当我创建应用程序的更新版本并将其重新部署到Web服务器时,加载项会正确检测到有新版本并尝试更新它。这是我遇到以下错误的地方(“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项目清单的位置。

1 个答案:

答案 0 :(得分:0)

ClickOnce最终没有问题;似乎有冲突,因为我第一次将它构建为ClickOnce,然后我的主人要求我也做一个常规的MSI安装包,这样他们就能看出差异。一旦我删除了常规安装程序代码,所有人都变得非常高兴。所以,如果你遇到这个问题,你可能犯了同样的错误。