🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.os.windows-10
Article #118

Re: How can we get an ACCURATE list of unique programs installed on WIndows?

#118
From: Maria Sophia
Date: Sat, 10 Oct 2026 13:26
77 lines
5431 bytes
Maria Sophia wrote:
> I'm still collecting data before I create the tool, as I'm assuming there
> are tools that already collect all the installed programs into a file.

While we can come up with many methods to *accurately* list the installed 
apps on Windows, let's compare, for now, the output from these 2 methods.
 1. C:\> winget list > "%USERPROFILE%\Desktop\InstalledApps.txt"
 2. C:\> powershell -ExecutionPolicy Bypass -File listapps.ps1

The powershell script showed individual components (like separate Python 
components & Office 2007 language packs and updates), while the winget
command collapsed individual internal components into a single entry.

The winget output doesn't contain the Publisher column whereas the 
powershell script successfully pulled vendor names out of the registry 
(e.g., pulling "Igor Pavlov" for 7-Zip, "Pyhton Software Foundation" for 
Python and "Microsoft Corporation" for the runtimes).

Yet the winget script matches installed apps to the online repository
and checks for updates (e.g., it showed my Mozilla was out of date).

The winget script was also blind to very old legacy msi-installed programs 
(e.g., those with ARP Machine X86 or ARP User) whereas powershell pulled 
everything from the provided registry keys - although I missed a key!).

Notice, the powershell script did not list Microsoft Store apps or MSIX 
packages (such as Windows Calculator, Ubuntu, or Microsoft Store-delivered 
versions of Copilot) because Windows Store apps live in a completely 
separate containerized database & register under a different set of keys.

To solve that, below is an improved powershell script others can use.
 # ----------------------------------------------------------------------
 # listapps.ps1
 # ----------------------------------------------------------------------
 # Reads the Windows Registry locations where installed programs often store
 # their uninstall information. It checks system-wide 64-bit programs,
 # system-wide 32-bit programs and programs installed for the current user.
 # It also retrieves AppX packages for the current user using Get-AppxPackage.
 # The script keeps registry entries with a display name, selects the name,
 # version, and publisher, labels each entry by source, combines the results,
 # sorts them alphabetically, and exports them to one desktop CSV file.
 # To run: C:\> powershell -ExecutionPolicy Bypass -File listapps.ps1
 # ----------------------------------------------------------------------
 # v1p3 20261010 Added to the CSV export a list of installed AppX packages
 # v1p2 20261010 Added description of how it works into the comment block.
 # v1p1 20261010 Output the list of installed apps to a desktop csv file
 # v1p0 20261010 List installed programs to the powershell command line
 # ----------------------------------------------------------------------
 
 $paths = @(
   'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*',
   'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
   'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*'
 )
 
 $registryApps = Get-ItemProperty $paths -ErrorAction SilentlyContinue |
   Where-Object DisplayName |
   Select-Object `
     @{Name='Name'; Expression={$_.DisplayName}},
     @{Name='Version'; Expression={$_.DisplayVersion}},
     Publisher,
     @{Name='Source'; Expression={'Registry'}}
 
 $storeApps = Get-AppxPackage |
   Select-Object `
     @{Name='Name'; Expression={$_.Name}},
     @{Name='Version'; Expression={$_.Version}},
     Publisher,
     @{Name='Source'; Expression={'AppX'}}
 
 @($registryApps) + @($storeApps) |
   Sort-Object Name |
   Export-Csv "$HOME\Desktop\InstalledPrograms.csv" -NoTypeInformation
 
 # end of listapps.ps1
-- 
Everyone adds their own flavor of value so that the group benefits greatly.
Technical Details
Message-ID: <11aded8$133a$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-12.vpngate.v4.open.ad.jp!not-for-mail
References: <11abjg1$fb2$1@nnrp.usenet.blueworldhosting.com> <bj3qs8xw2mrd.1l1zhzw1pw1o7$.dlg@40tude.net> <11ad6mn$17o8$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED.public-nat-12.vpngate.v4.open.ad.jp!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: alt.comp.os.windows-10,alt.comp.os.windows-11,alt.msdos.batch
Subject: Re: How can we get an ACCURATE list of unique programs installed on WIndows?
Date: Sat, 10 Oct 2026 06:26:03 -0700
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <11aded8$133a$1@nnrp.usenet.blueworldhosting.com>
References: <11abjg1$fb2$1@nnrp.usenet.blueworldhosting.com> <bj3qs8xw2mrd.1l1zhzw1pw1o7$.dlg@40tude.net> <11ad6mn$17o8$1@nnrp.usenet.blueworldhosting.com>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 10 Oct 2026 13:26:01 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="l//KxG3Ge2LojWvwJg0Igv8F0ChK8RUC9RtOxMPUo3U"; posting-host="Dg8vEhE1wZBDJOwXTSEKAoRS4PU2oXroEpl9dza6STY";
	logging-data="35946"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mojibake 1p3
Cancel-Lock: sha1:xV9sPvh9HIalLiOzIU7y1In1AuA= sha256:ykGeVcOgG+VlKUFSFHHTa1yvzoFaisSI9DmkeaR4TSc=
	sha1:FiI56drsYhtmSQUYDP2WoQccw/Y= sha256:7+4svhIAsWBBsXP+KOKMdNERCaL6woXIkTwhxb5W4jo=
Content-Language: en-GB