English 中文(简体)
固定办公室
原标题:Installing Office Customization
  • 时间:2009-10-09 14:39:57
  •  标签:

Name: From: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto

由于目前安装了另一种版本,无法从这个地点升级,因此无法安装定制。 安装这一定制版本,首先使用“补充”或“消除”方案,以启动这一方案:测试。 然后从以下地点安装新的定制:文件http:///D:/Samples/ReformVersion/bin/Debug/ReformVersion.vsto

************** Exception Text ************** Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException: 由于目前安装了另一种版本,无法从这个地点升级,因此无法安装定制。 安装这一定制版本,首先使用“补充”或“消除”方案,以启动这一方案:测试。 然后从以下地点安装新的定制:文件http:///D:/Samples/ReformVersion/bin/Debug/ReformVersion.vsto at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri, String subscriptionId, Boolean previouslyInstalled) at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()

问题回答

2. 您可设法删除位于以下地点的登记处钥匙:

HKEY_CURRENT_USERSoftwareMicrosoftVSTASolutions{GUID}

{GUID}在你的环境下的价值将有所不同。

检查,确保你删除正确的钥匙。 核对DWORD“Url”在钥匙上的数值。

重开Excel,你应当善待。

这种错误只应出现在你的开发机器上。

http://msdn.microsoft.com

When you build an Office solution, the built version is automatically registered. If you have previously published and installed the same solution to your development computer, Visual Studio Tools for Office runtime detects that the installation path for the published version and the built version are different after the next build, rebuild, or publish. The error message says "the customization cannot be installed because another version is currently installed and cannot be upgraded from this location." Because rebuilding the solution updates the registry keys, it is necessary to uninstall the first version before publishing, debugging, or running the second version.

To prevent the message from appearing, create another user account on your development computer to test your deployment. Alternatively, you can uninstall the version from the list of installed programs on the computer before you next publish, debug, or rebuild the solution.

try this link , you have a command to run in this page,just run it the problem will be fixed. command:

rundll32 dfshim CleanOnlineAppCache

见这一链接:。 我如何完全放弃我电脑的ClickOnce申请?

如果你试图安装/更新VSTO Add,那么这一错误是可以证明的。 在你开发的同一机器上,它是由视觉演播室造成的。

您在座 在视觉演播室,它更新了AddIn所用的登记册钥匙,从而打破了你所完成的任何装置。

HKEY_CURRENT_USERSoftwareMicrosoftOffice<Application>Addins<YourAddIn>Manifest

The solution is to add a post-build event that would restore/set the registry key to the correct value. For example, if your AddIn is configured to be installed/updated from <YourPublishLocation>, the post-build event should be similar to:

REG ADD "HKEY_CURRENT_USERSOFTWAREMicrosoftOffice<Application>Addins <YourAddIn>"
/v "Manifest" /d "<YourPublishLocation>" /f

Try uninstalling the previous signed VSTO application OR from theudioroom menu >Building Clean Solutions.

On development machine, on which I had built the VSTO Project in Visual Studio with the same Product Version / identity, I needed to execute Clean command by selecting the Project in Solution Explorer. In fact, this helped clear the registry entry, referred to above.

这使我能够用同样的应用特性重新种植产品。

我在部署新版本的《世界热带木材组织》新字时也存在同样的问题。 在进行了2小时的互换之后,我发现,你在解决方案(从中升级)的特性中设置的安放器是敏感的,因此,必须与最初安装的URL一样。

我是在加添装置后测试部署的,并在试图安装时面临同样的问题。

议题:如果你公布或删除添加内容,则VS将创建/更新登记册,同时添加这一添加内容。

KongEY_CURRENT_USERSoftwareMicrosoftOfficeExcelAddins<you Addin name/strong>>Manifest

this has the reference to the VSTO file that would be compared for doing upgrade. In your case, after you do publish, it would be pointing to

档案http://D/Samples/ReformVersion/bin/Debug/ReformVersion.vsto

Change this to your published vsto path. Now try to install, should work fine. You can test your auto upgrade options the same way, i.e. make a build+publish and change this path, then close all excels and open one.

在这个问题上帮助我的是,我从我的原封手上安装的从控制-M中抽出的lu。 并且清理解决办法。





相关问题