如何使用安装程序类c#卸载addin? [英] how to uninstall addin using installer class c#?
问题描述
我使用VSTO 2010创建了一个插件,如下所示,我已经解释了这个问题。 卸载自定义Excel Addin不会从MS Excel的Addin选项卡中删除。 [< a href =http://www.codeproject.com/Questions/682342/Uninstalling-the-custom-Excel-Addin-is-not-removedtarget =_ blanktitle =New Window> ^ ]
代码片段如下所示。执行此操作后,仍然无法从插件选项卡中删除插件。我发布了几个论坛,我得到任何解决方案,但仍然只在分析过程中。我怎样才能做到这一点。插件仍未从插件选项卡中删除。我这是VSTO的问题???
Hi,
I have created an addin using VSTO 2010 as shown here where I have explained the issue.Uninstalling the custom Excel Addin is not removed from the Addin tab in MS Excel.[^]
The code snippet is as shown below. After doing this , still the addin is not removed from the addin tab. I posted in several forums and i dint get any solution and still in the analysis process only. How can I achieve this. The addin is still not removed from the addin tab. I this the problem with VSTO???
private void ThisAddin_Shutdown(object sender,System.EventArgs e)
{
var temp = this.Application.AddIns2.get_Item(1);
temp.Installed = false;
}
推荐答案
请访问以下链接:
c#Excel Interop(v.10.0.4504.0)自动化加载项功能不可用 [ ^ ]
vsto加载项不在添加/删除程序中 [ ^ ]
卸载VSTO插件 [ ^ ]
Please, visit below links:
c# Excel Interop (v.10.0.4504.0) Automation add-in functions not available[^]
vsto add-in not in add/remove programs[^]
uninstall VSTO plugin[^]
这篇关于如何使用安装程序类c#卸载addin?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!