且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从COM加载项窗口中选择[删除]后,无法重新注册VSTO加载项

更新时间:2021-07-30 07:55:12

到目前为止,我所能做的***的就是更改程序集名称. 这样,Word女士就可以将解决方案视为另一个加载项,并且可以正确注册. 它可以工作,但这远远不能接受..

So far the best I could do was to change the Assembly Name. This allows the solution to be seen as a different Add-in by Ms Word and to be registered correctly. It works, but this is far from being acceptable..

现在可以使用完全签名的发行版并进行大量测试:这仅是Windows 10的问题,其中ClickOnce与首次安装后所安装的VSTO是分离"的:通过卸载您的ClickOnce应用程序应用程序和设置面板,并且VSTO尚未从Word中注销;或手动注销VSTO,ClickOnce无法将其重新注册到Word中.

Now working with fully signed releases, and following substantial testing: this is an issue with Windows 10 only, where ClickOnce is "cut loose" from the VSTO it installed after it being installed for the first time: uninstall your ClickOnce app via the App & Settings panel, and the VSTO is not unregistered from Word; or unregister the VSTO manually, and ClickOnce is unable to re-register it into Word.

可以在Windows 7下毫无问题地执行上述步骤.

The above steps can be undertaken under Windows 7 with no problems.

看起来与Office的安装版本有关:即点即用与Microsoft Store. Windows 7并未解决此问题,因为Microsoft Store安装不可用.

Looks like this was related to the installation version of Office: Click-to-Run vs Microsoft Store. The issue did not come up with Windows 7 because Microsoft Store installations are not available.

此处的完整回复: https://***.com/a/58625402/10794555