Installing Office Customization

前端 未结 10 1904
长发绾君心
长发绾君心 2020-12-14 14:59

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

The customization cannot be installed because another version is currently insta

10条回答
  •  长情又很酷
    2020-12-14 15:55

    This error can show up if you are trying to install/update a VSTO AddIn on the same machine where you've developed it, and it's caused by Visual Studio.

    Whenever you build your AddIn in Visual Studio, it updates the registry key used by the AddIn thus breaking any install that you've done.

    HKEY_CURRENT_USER\Software\Microsoft\Office\\Addins\\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 , the post-build event should be similar to:

    REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\\Addins "
    /v "Manifest" /d "" /f
    

提交回复
热议问题