Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

INSTALLED returnes same program multiple times

Apr
1,794
15
[C:\Program Files\JPSoft\TCMD21]installed /A /D /U /V
.
returns in part:
.
TweetDeck 2.1.0 Twitter, Inc. 2013-01-11
TweetDeck 2.1.0 Twitter, Inc. 2013-01-11
.
Just wonder why that is please?
 
It's only doing what Windows tells it. I can't say how it happens, but some products (only TCCLE v14 here) get multiple "Product" entries in the registry (see below). It also appears twice in the Control Panel's Add/Remove Programs.
upload_2017-6-25_15-36-54.png


upload_2017-6-25_15-39-6.png
 
P.S., It was much worse during the alpha/beta testing. For a while nearly every product appeared twice. That was fixed nicely.

When I have time, I'll investigate those two GUIDs and try to determine which corresponds to my actual installation. Does anyone have any idea how I might tell?
 
TweetDeck only appears once in "Control Panel\All Control Panel Items\Programs and Features" - so trying to find out why the difference...
 
Where in the registry does INSTALLED get it's data?

Software\Classes\Installer\Products
Software\Microsoft\\Windows\\CurrentVersion\Uninstall
Software\Microsoft\\Installer\Products
Software\Microsoft\\Windows\CurrentVersion\Installer\UserData

And subkeys for all the above. X2 for the X86 & X64 registry hives. And some additional Windows APIs. And some WMI calls.

Most often, if you see two entries it's because you have both an x86 and an x64 registry setting.
 
@rconn - are those HKLM or what?

so using [REGDIR [/D /F /P /Sn /V] keyname] what would I need - to get just the product name and see where 2 of TweetDeck is coming from?
 
I get a list of 105 products like this.
Code:
wmiquery /a . "select Name from Win32_Product"

There are 101 in Software\Classes\Installer\Products.

INSTALLED (and ControlPanel) show 86. How do you decide which ones to show/not show?
 
I get a list of 105 products like this.
Code:
wmiquery /a . "select Name from Win32_Product"

There are 101 in Software\Classes\Installer\Products.

INSTALLED (and ControlPanel) show 86. How do you decide which ones to show/not show?

Is there a similar Win64_Product for x64 systems? Also weird that the same wmiquery only lists Tweetdeck once..... And some others are duplicated....
 
Is there a similar Win64_Product for x64 systems? Also weird that the same wmiquery only lists Tweetdeck once..... And some others are duplicated....
I get no duplicates from WMIQUERY. And a little research told me that the only products that get into the Win32_Product class are those installed via an MSI file. That seems to be also true of what's in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products. I don't know if the class has a different name in x64. Perhaps there's a different namespace for 32-bit info on x64 (???). If your system has WMIC.EXE you might play with it.

You might be able to list the WMI classes available with a script like this: CLASSES.VBS
Code:
strComputer = "."

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colClasses = objWMIService.SubclassesOf()

For Each objClass In colClasses
    WScript.Echo objClass.Path_.Path
Next
and the command
Code:
cscript classes.vbs
 
For those who may not be aware...

A Microsoft tool called WMI Code Creator comes with the .exe and the .cs source code.

A good tool to use to create the query string for the WMIQuery command, as mentioned in the Take Command Help File.

Joe
 

Similar threads

Back
Top