问题描述
名称:来自:file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto
Name:From: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto
由于当前已安装了另一个版本,并且无法从该位置升级,因此无法安装自定义项.要安装此版本的自定义,请首先使用添加或删除程序"来卸载此程序:TestUpdatedVersion.然后从以下位置安装新的自定义:file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.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: TestUpdatedVersion. Then install the new customization from the following location: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto
**************异常文本**************Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException:无法安装自定义项,因为当前已安装了另一个版本,并且无法从该位置升级.要安装此版本的自定义,请首先使用添加或删除程序"来卸载此程序:TestUpdatedVersion.然后从以下位置安装新的自定义:file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto 在Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri,字符串subscriptionId,先前安装的布尔值) 在Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
************** 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. To install this version of the customization, first use Add or Remove Programs to uninstall this program: TestUpdatedVersion. Then install the new customization from the following location: file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.vsto at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri, String subscriptionId, Boolean previouslyInstalled) at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
推荐答案
您可以尝试删除位于以下位置的注册表项:
You can try to delete a registry key located at:
HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\{GUID}
在您的环境中,{GUID}的值将有所不同.
The value of {GUID} will be different on your environment.
检查以确保您要删除右键.通过检查密钥上的DWORD"Url"值进行确认.
Check to ensure that you're deleting the right key. Confirm by checking the DWORD "Url" value at the key.
重新启动Excel,您应该一切顺利.
Restart Excel and you should be good to go.
这篇关于安装Office自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!