Programmatically uninstall Excel Addins using VBA
Sub UnInstall_Addins_From_EXcel_AddinsList()
Dim oXLAddin As AddIn
For Each oXLAddin In Application.AddIns
Debug.Print oXLAddin.FullName
If oXLAddin.Installed = True Then
oXLAddin.Installed = False
End If
Next oXLAddin
End Sub
See also:
Call a Method in VSTO Addin from Visual Basic Applications
Programmatically Delete Word Addins from the Addins List using VBA
UnInstall Word Addins using VBA
This simply tags the add-in as uninstalled. It does not, however, REMOVE it from the Add-Ins Manager list.
ReplyDelete