title: Error disabling COM Add-IN in VB.Net
body: <p>Within my own PowerPoint Add-In, I have been disabling a seperate add-in using the code below for quite some time:</p>
  
  <pre><code>For Each COMAddIn As COMAddIn In PowerPointApp.COMAddIns
      If COMAddIn.ProgId = "addinname" And COMAddIn.Connect = True Then
          Try
              COMAddIn.Connect = False
          Catch ex As Exception
              System.Diagnostics.Debug.Print("Disable Failed: " + ex.Message)
          End Try
      End If
  Next COMAddIn
  </code></pre>
  
  <p>However on my new computer I get the output:</p>
  
  <blockquote>
    <p>Disable Failed: This add-in is installed for all users on this
    computer and can only be connected or disconnected by an
    administrator.</p>
  </blockquote>
  
  <p>I initially thought that I would have to run PowerPoint as administrator for my code to work; however this isn't an good option.</p>
  
  <p>Furthermore, I can manually disable the add-in without running PowerPoint as administrator.</p>
  
  <p>Do PowerPoint Add-Ins have a separate Privilege level to the instance of PowerPoint? Can you not disable add-ins for all users through code?</p>
  
  <p>Not sure how to solve this problem.</p>