Installing Office Customization

2019-02-02 20:26发布

Name: From: 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

************** 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()

9条回答
ら.Afraid
2楼-- · 2019-02-02 21:31

We have a number of products using VSTO on Office 2007, Office 2010 and Office 2013 on various Windows versions. The Deployment.AddInAlreadyInstalledException occurs often during deployments. The problem seems to occur especially on PCs with many install/deinstall cycles (such as of IT personnel itself). Often leaving me with gray or no hairs, since a re-install is not always easily possible and the source is unclear.

As there is not a silver bullet to fix any source of the problem (other than reinstalling Windows), I have gathered experiences in a blog post on steps to resolve AddInAlreadyInstalledException

Maybe this helps other users of VSTO and Microsoft Visual Studio.

查看更多
We Are One
3楼-- · 2019-02-02 21:33

You can try to delete a registry key located at:

HKEY_CURRENT_USER\Software\Microsoft\VSTA\Solutions\{GUID}

The value of {GUID} will be different on your environment.

Check to ensure that you're deleting the right key. Confirm by checking the DWORD "Url" value at the key.

Restart Excel and you should be good to go.

查看更多
Ridiculous、
4楼-- · 2019-02-02 21:33

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

rundll32 dfshim CleanOnlineAppCache

See this link: How do I completely uninstall a ClickOnce application from my computer?

查看更多
登录 后发表回答