wmic product get does not get all programs

19,622

Per Microsoft: The Win32_Product WMI class represents products as they are installed by Windows Installer (AKA .MSI installer files, msiexec)

Since there are other installers/software-packagers (InstallShield, Wise, NSIS [Nullsoft Scriptable Install System]) that apparently don't register themselves in WMI (since they may predate it) I guess we have to query in multiple locations :(. Standards are changing, as IT always is so this is just the reality we have to deal with. As you've already mentioned in a comment you can query the registry in these locations for all the other apps: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall & HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall

I guess WMI queries registry at this location: HKEY_CLASSES_ROOT\Installer\Products

Here are some links with additional info:

Share:
19,622

Related videos on Youtube

user875630
Author by

user875630

Updated on September 18, 2022

Comments

  • user875630
    user875630 over 1 year

    When I use

    wmic product get name name,version
    

    I get a list where are showed all programs installed on my PC, but still there are not all programs listed. When I go to control panel > Uninstall programs I see more programs

    • Mokubai
      Mokubai about 6 years
      Any specific examples of programs that are missing? Are they "standard" applications or ones installed from the Windows Store?
    • user875630
      user875630 about 6 years
      @Mokubai Extensions for autodesk maya that are showed in control panel > Uninstall programs, VLC player. Also I when I use 'wmic product get name name,version' in cmd and when I use in powershell 'Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\‌​Uninstall* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize' there could be some differences
    • Mokubai
      Mokubai about 6 years
      You can edit the details into your question. There should be and "improve" or "edit" link just below the question body.
    • HelpingHand
      HelpingHand about 6 years
      If you run: wmic product list > 1.txt you will see that they are all MSI based. I assume you are missing anything that isn't MSI based.
    • Ramhound
      Ramhound over 5 years
      Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. What exactly is your question? As your question is currently written, I can't tell if an answer actually answers your question or not, you should consider modifying to make it clear what your question is exactly. The command you used, only returns registered programs, not all programs when they are installed created the required registry key.