Score:0

Uninstalled Program(s) still appear in WMI Object “WIN32_InstalledStoreProgram”?

it flag

Note: This is a repost from an original post on StackOverflow. I was directed here by a helpful user, and am simply reposting.

I made a StackOverflow account for the first time due to this annoying issue. I was solving vulnerabilities on a Test PC VM at my current job to test some new procedures, and one of the vulnerabilities involved the preinstalled application "Paint3D" (Specifically QID 91774 for those interested). Long story short, the vulnerability was simply "outdated app version". After updating Paint3D to the newest version and confirming as such with Powershell, I noticed that our vulnerability management software kept detecting Paint3D as an outdated version. The vulnerability was detected by querying the WMI object "WIN32_InstalledStoreProgram", like so: snip of "Threat Detection Logic" method After seeing this vulnerability still occur even after updating to the newest version, I went ahead and simply uninstalled Paint3D via Settings > Apps menu.

When I queried the same WMI object manually using Powershell commands "Get-WmiObject Win32_InstalledStoreProgram" and "Get-WmiObject Win32_InstalledStoreProgram | Format-List -Property Name, Version" I noticed there were 2 entries for the app I uninstalled (Microsoft.MSPaint). One was the old version that I updated from, the other was the new version that I updated to. Both were uninstalled and confirmed to be uninstalled. I uninstalled a separate app (Weather) to see if maybe the WMI object does not update automatically, but upon uninstall and confirmation using the above Powershell commands, the Weather app was confirmed to be uninstalled and removed as an entry in the WMI object, while the two different versions of Microsoft.MSPaint remained. I also uninstalled the normal version of "Paint" in case that was the issue, but the two entries remain.

Now for the tricky part. Microsoft Store gives me different error messages each time I try to install Paint3D. I believe it's due to MS Store also querying the same WMI object and, seeing that I have two "versions" of "Paint3D", fails to install anything. I am at my wit's end with this tiny issue. The fix I plan on implementing is just wiping this VM and continuing vulnerability solution procedures, but I really do want to understand why this is happening and what could possibly be causing this issue. I have read some documentation about manually editing and updating WMI objects, however I don't know enough about WMI or WMI objects in order to be confident and effective. It's such a simple task: update or uninstall Paint3D. I simply had no idea I would run into this, and would like to understand at least what is happening.

Snip of WMI object showing outdated MSPaint version Snip of WMI object showing current MSPaint Version, however Paint3D is uninstalled altogether

Edit 1, 12:20 AM 9/1/2021: Just a follow up, I tried removing my AD User from the system and getting a clean log in, yet Paint3D still was deleted and Microsoft Store was still inoperable. This issue is only specific to that specific desktop.

br flag
i have many MSApps that show two entries for each version - one each for x86 & x64. perhaps you uninstall left behind the x86 version? ///// i still have no ideas on how to remove it ... but more info may help you find the "way".
BurgundianM avatar
it flag
Hi Lee, that could be a factor. I'll be sure to look into it next time I'm on the Test PC
br flag
good luck! [*grin*]
Score:2
in flag

My issue was with the HEVCVideoExtension, but otherwise similar. I tried it this way from an Admin PowerShell prompt:

Get the full package name using: Get-AppxPackage -AllUsers -Name "Microsoft.HEVCVideoExtension"

With the full package name Microsoft.HEVCVideoExtension_1.0.41483.0_x64__8wekyb3d8bbwe try this:

Remove-AppxPackage -AllUsers -Package "Microsoft.HEVCVideoExtension_1.0.41483.0_x64__8wekyb3d8bbwe"

In my case this failed, because the installation of the old/outdated version had been accomplished under a user account no longer installed on the machine.

So I did a full Windows Store reset:

WSReset.exe

I then re-ran the Get-AppxPackage command to confirm the reset had worked. It had.

The next time I launched the Windows Store it took forever to initialize but worked.

Score:1
cn flag

Windows bloatware can be tricky, try removing it with PowerShell.

Run PowerShell as admin then:

Get-AppxPackage Microsoft.MSPaint | Remove-AppxPackage

BurgundianM avatar
it flag
Hi Quinn, already tried that during troubleshooting :c Both entries remained. Edit: I did notice that attempts to reverse the uninstall also failed. I could not reinstall Paint3D with Powershell. I also now cannot open Microsoft Store without it terminating immediately. We tried signing in different users who also had Administrator privileges and they had functional versions of Paint3D. When logged in with my AD user on the specific desktop (the one I was logged into when testing these procedures) I could not access Paint3D nor the store in any manner. Only on that desktop though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.