简体   繁体   English

通过ClickOnce更新折叠的Excel加载项部署

[英]Excel addin deployment through ClickOnce update collapse

I developed Excel addin. 我开发了Excel插件。 I want to deploy addin it through ClickOnce. 我想通过ClickOnce部署插件。 Addin publish to a Shared folder. 插件发布到共享文件夹。 Addin is developed successfully and appears in Excel. Addin开发成功,并显示在Excel中。 but when I change something in Adin and publish an updated version when you start Excel the following error: 但是当我在启动Excel时更改Adin中的某些内容并发布更新版本时,出现以下错误:

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: PricelistExcelAddIn. 要安装此版本的自定义,请首先使用“添加或删除程序”来卸载此程序:PricelistExcelAddIn。 Then install the new customization from the following location: file:///C:/Users/sribin/Documents/Visual Studio 2008/Projects/PricelistExcelAddIn/PricelistExcelAddIn/bin/Debug/PricelistExcelAddIn.vsto 然后从以下位置安装新的自定义:file:/// C:/ Users / sribin / Documents / Visual Studio 2008 / Projects / PricelistExcelAddIn / PricelistExcelAddIn / bin / Debug / PricelistExcelAddIn.vsto

Details: 细节:

Name: 名称:

From: file:///C:/Users/sribin/Documents/Visual Studio 2008/Projects/PricelistExcelAddIn/PricelistExcelAddIn/bin/Debug/PricelistExcelAddIn.vsto 来自:file:/// C:/ Users / sribin / Documents / Visual Studio 2008 / Projects / PricelistExcelAddIn / PricelistExcelAddIn / bin / Debug / PricelistExcelAddIn.vsto

** * ** ** * ** Exception Text 例外文字 ** * **** ** * ****

Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException: The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException:由于当前已安装了另一个版本,并且无法从该位置升级,因此无法安装自定义项。 To install this version of the customization, first use Add or Remove Programs to uninstall this program: PricelistExcelAddIn. 要安装此版本的自定义,请首先使用“添加或删除程序”来卸载此程序:PricelistExcelAddIn。 Then install the new customization from the following location: file:///C:/Users/sribin/Documents/Visual Studio 2008/Projects/PricelistExcelAddIn/PricelistExcelAddIn/bin/Debug/PricelistExcelAddIn.vsto в Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri, String subscriptionId, Boolean previouslyInstalled) в Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() 然后从以下位置安装新的自定义项:file:/// C:/ Users / sribin / Documents / Visual Studio 2008 / Projects / PricelistExcelAddIn / PricelistExcelAddIn / bin / Debug / PricelistExcelAddIn.vsto-Microsoft.VisualStudio.Tools.Applications。 Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri,字符串subscriptionId,先前安装的布尔值)•Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

How can I fix this problem? 我该如何解决这个问题?

The installation URL of a ClickOnce deployment is a major piece of the identity. ClickOnce部署的安装URL是身份的主要组成部分。 You can't install a C/O app from two different locations, and you can't install it from a location that doesn't match the installation URL in the deployment. 您不能从两个不同的位置安装C / O应用程序,也不能从与部署中的安装URL不匹配的位置安装C / O应用程序。 Having said that, what is your installation URL for your VSTO addin? 话虽如此,您的VSTO插件的安装URL是什么? Surely it's not "c:/users/sribin/documents/visual studio 2008/projects..." 当然不是“ c:/ users / sribin / documents / visual studio 2008 / projects ...”

Create a file share somewhere, even if it's on your own machine for testing, and use that as your installation URL, and put the files there. 即使在您自己的机器上进行测试,也要在某处创建文件共享,并将其用作安装URL,然后将文件放在此处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM