Installing Office Customization

前端 未结 10 1891
长发绾君心
长发绾君心 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:34

    I was testing deployment after making the addin setup and facing the same problem when trying to install.

    Issue: When you do a publish or debug the addin, VS would create/update the registry with this addin info under

    HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\<you addin name>\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

    file:///D:/Samples/TestUpdatedVersion/bin/Debug/TestUpdatedVersion.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.

提交回复
热议问题