从Windows 10运行时,ClickOnce不会取消注册/重新注册VSTO解决方案 [英] ClickOnce does not unregister/re-register VSTO solutions when running from Windows 10
问题描述
发布Word女士的HelloWorld加载项。通过ClickOnce签名并发布,并将安装文件夹设置为在线目录。
Release an HelloWorld add-in for Ms Word. Sign and publish via ClickOnce, with the installation folder being set to an online directory.
- 运行加载项setup.exe,以通过ClickOnce安装。
- 声明,该加载项已注册了,位于
文件/选项/加载项
中。关闭Word。 - 转到
程序和功能
面板,然后卸载与该加载项相对应的ClickOnce应用程序。 li> - 启动Word和声明加载项已从
文件/选项/加载项未注册 code>。
- 运行外接程序setup.exe,以通过ClickOnce安装。
- 声明加载项已注册在
文件/选项/加载项
中。 - 选择
管理:COM加载项
,然后按[Go ...]。选择加载项,然后单击[删除]。 - 转到
程序和功能
面板,然后卸载对应的ClickOnce应用程序 - 运行加载项setup.exe以通过ClickOnce安装。
- 声明加载项已注册在
文件/选项/加载项
中。
- Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins
. Close Word. - Go to the
Programs and Features
panel, and uninstall the ClickOnce application which corresponds to the Add-in. - Launch Word and assert the add-in has been unregistered from
File / Options / Add-ins
. - Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins
. - Select
Manage: COM Add-ins
and press [Go...]. Select the add-in and click [Remove]. - Go to the
Programs and Features
panel, and uninstall the ClickOnce application which corresponds to the Add-in. - Run the add-in setup.exe to install via ClickOnce.
- Assert the add-in has been registered in
File / Options / Add-ins
.
Windows 7 + Office 365下的结果
该流程有效并且所有步骤均正确。
Results under Windows 7 + Office 365
The flow works and all steps are correct.
该流程不起作用。
- 步骤4:卸载ClickOnce应用程序对使用Word进行加载项注册没有影响。
- 步骤10:手动注销加载项会导致ClickOnce无法重新注册-注册它:不断告诉您已经安装了最新版本的Office自定义,这在Word中没有反映,在Word中没有已注册的加载项。
我过去曾举过几个旗,但是没有运气。现在,我将问题缩小到Windows 10,并从ClickOnce排除了其他不一致的行为(第4步不起作用)。
I have raised several flags in the past but got no luck. I have now narrowed down the problem to Windows 10 and additional inconsistent behaviour from ClickOnce (step 4 not working).
问题:
- 我们真的是唯一面对这一高度确定性问题的VSTO发布者吗?
- 我们应该把它称为Bug吗?我们可以在哪里标记它?
这是以下主题的后续内容,但我从未得到答案:
This is a follow up to the following threads, where I never got an answer:
在COM加载项窗口中选择[删除]后,无法重新注册VSTO加载项
推荐答案
问题并非与Windows 10直接相关,而是与 Office版本相关联:商店或台式机。
The problem is not directly linked with Windows 10, but the version of Office: Store or Desktop.
默认情况下,在Windows 10计算机上安装Office时,它是从Microsoft Store安装的。
您可以通过在文件/帐户
中检查应用程序版本来确定要安装的版本:[关于Word]按钮的右侧,您将找到该版本。和内部版本号,然后是以下两个选项之一:
By default, when installing Office on a Windows 10 computer, it is installed from the Microsoft Store.
You can tell what version is installed by checking your application version in File / Account
: to the right of the [About Word] button, you will find the version and build number, followed by one of these two options:
即点即用
Click-to-Run
这意味着您已安装d esktop版本,或者
Which means you have the desktop version installed, or
Microsoft Store
Microsoft Store
这意味着您已安装商店版本。
商店版本在处理时会引起很多问题注册表项甚至文件。
此问题由Add-in Express支持服务的Andrei Smolin解决。通过在24小时内解决我们几个月来遇到的问题,他一直非常有用和勤奋。值得一提的是我们还不是客户。
The store version causes many issues when it comes to the handling of registry keys, or even files. This issue was resolved by Andrei Smolin from Add-in Express Support Service. He has been extremely useful and diligent by resolving within 24 hrs an issue we had for months. Worth mentioning we are not event (yet) a client.
请参阅他的文章了解更多详细信息。
See his article for additional details.
现在的问题是,我们如何向微软报告?
Now the question is, how do we report this to Microsoft?
这篇关于从Windows 10运行时,ClickOnce不会取消注册/重新注册VSTO解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!