title: Automating uninstall from Programs and Features
body: <p>I have a couple of applications that I am trying to uninstall from Windows 7 and Windows 8.1, using Python automation. Windows command lines will also work.</p>
  
  <p>The programs appear on the Programs and Features list in the control panel. Clicking them and selecting uninstall will uninstall them without issue. Uninstalling manually by clicking through the Programs and Features menu works fine and easily.</p>
  
  <p>The programs were installed using an EXE file rather than an MSI file.</p>
  
  <p>What I have tried so far:</p>
  
  <p>1)</p>
  
  <pre><code>wmic product get name
  </code></pre>
  
  <p>Using the command 'wmic product get name' shows a list of only some of the programs that are displayed on the 'Programs and Features' page. The programs I wish to uninstall are not listed.</p>
  
  <p>2)</p>
  
  <pre><code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall
  </code></pre>
  
  <p>The programs do not appear in the above registry location</p>
  
  <p>3)</p>
  
  <p>"Use pywinauto to open and manipulate the Programs and Features window directly."</p>
  
  <p>The pywinauto module (or anything else that can find and manipulate window and button handles) does work to open and grab the Programs and Features window, but manipulating it fails. In particular, entering text into the search box fails, so the programs to uninstall cannot be selected.</p>
  
  <p>4)</p>
  
  <p>"Use the uninstall msi that came with the program."</p>
  
  <p>There wasn't one.</p>
  
  <p>5)</p>
  
  <p>"Run the installer executable again."</p>
  
  <p>That just updates the software, rather than remove it.</p>