wmic product get name /value - not showing 32-bit products on 64-bit OS
- If I run "wmic product get name /value" on WS08 R2 Server Core, it does not list 32-bit apps.
How do I get these apps listed so ultimately I can then run the unstinstall (Wmic product where name=”<name>” call uninstall)?
The apps are there in the registry, but under the WoW6432Node.
答案
Hi,
You can refer to:
Listing installed applications on Vista 64-bit with WMI
http://david.gardiner.net.au/2007/03/listing-installed-applications-on-vista.html
Important Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Vincent Hu
- 已标记为答案GforumB 2009年11月24日 19:38
全部回复
Hi,
Didn’t you see all the 32-bit applications or some of them? I run the command you mentioned on my Windows Server 2008 R2 Core Installation computer and it shows the 32-bit application properly(I have only one 32-bit application installed), see the following screen shot.
Vincent Hu
- 已标记为答案Vincent HuMSFT, 版主2009年11月19日 9:38
- 取消答案标记GforumB 2009年11月20日 18:24
· Hi,
Have you tried the suggestion? I want to see if the information provided was helpful. Your feedback is very useful for the further research. Please feel free to let me know if you have addition questions.
Best regards,
Vincent Hu
- I may have jumped the gun a little on whether 32-bit vs 64-bit is the real issue. I'm seeing both.
When I run the command, it seems to only show me apps that are listed in the following registry key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
However, the app I need to uninstall is not listed in that key, but rather this one:
HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
Am I running the command incorrectly or is this expected behavior? Hi,
You can refer to:
Listing installed applications on Vista 64-bit with WMI
http://david.gardiner.net.au/2007/03/listing-installed-applications-on-vista.html
Important Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Vincent Hu
- 已标记为答案GforumB 2009年11月24日 19:38
- Thanks Vincent,
This script does now show me the app I'm unable to see using wmic. It's the not the greatest method (prefer no pop-ups and just list all on the command line).
Ultimately, is there no Microsoft way to list AND uninstall these apps? Using WMIC is the only documented means I've seen, but seems to lack the ability to truly list all applications, nor does it give a means to uninstall them. This is important for Server Core. Is using this script and using the 'uninstall string' in the Wow6432Node registry the only way to get this to work on Server Core. If so, I don't think Microsoft did a good job in preparing for command line driven application install/uninstall. Hi,
The following post discussed the similar issue, you can refer to:
Uninstalling Applications in Server Core
Vincent Hu
- HiI'm Navaneethan here. I'm facing the same problem with longhorn servercore . I just wanted to know whether you found any tweak to uninstall using wmic. Right now,. though the software that i want to uninstall is listed in the registry key, "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall"it's not listing when i use "wmic product get name /value"Thanks in advance,Navaneethan
Hi,
Base on my experience, you can use the following command to uninstall a 64bit application on a X64 Windows computer.
product where name="XXX" call uninstall
Note: you can use “wmic product get name /value” command to get the name of the applications.
However, it’s a bit hard to uninstall a 32bit application on a X64 Windows computer, there is a workaround, you can navigate to the applications folder, such as c:\progran files(x86)\XXX, launch the uninstall.exe to uninstall the application.
Vincent Hu
- Hey Vincent,First of all thanks a lot for the quick responce.you can navigate to the applications folder, such as c:\progran files(x86)\XXX, launch the uninstall.exe to uninstall the application.FYI, the software i'm trying to uninstall is 64-bit and using the uninstallstring registry key, i'm actually able to uninstall the software.My actual problem is the listing feature of wmic command.." Note: you can use “wmic product get name /value” command to get the name of the applications. "when i use this command, it's not listing all the installed products. My problem is not exactly but kind of similar to what "Mr.GForumB" encountered.Do you know the reson why something like this is happening? is this a bug with the wmic command ?? Has any one reported something of this sort..Sorry i'm bugging you with a lot of questions..ThanksNavaneethan
Hi,
Yes, when you run “wmic product get name /value” command on a X64 Windows computer, it will not list the 32bit applications. However, this is not a bug, it seems that the function to list the 32bit applications is not include directly in this command. I understand that it will be inconvenient to list all the applications on a X64 Windows computer and I will report this to our related group.
Vincent Hu
- Hi Vincent,I got the point that if woun't list the 32 bit applications..But my problem is, the application i'm trying to uninstall is 64 bit and wmic is still not listing it. ANy reasons for that ?ThanksNavaneethan