Re: "Select * from Win32_Product" Not Finding All Apps

Tech-Archive recommends: Speed Up your PC by fixing your registry



On 19 May, 04:45, "mayayana" <mayaXXyan...@xxxxxxxxxxxxxxxx> wrote:
As James Whitlow said, you want to run the UninstallString
value from the Uninstall key.
The Win32_Product WMI class is just a partial wrapper around
MSI. You can get at that directly with the
WindowsInstaller.Installer object. But if you didn't install the
program with an MSI file then Windows Installer doesn't know
about it and Windows Installer can't uninstall it.

Frankly, the whole Windows Installer system is overproduced
crap that's only used by companies that want to cooperate
closely with Microsoft. A great deal of 3rd-party software,
and most older software, is NOT packaged as an MSI. So unless
you're dealing only with one specific, known program you need
to go though the Registry, like the Add/Remove applet does.


Hi Mayayana/James,

Thankyou for your input.

I have found the uninstall keys as pointed out by James (thanks
James).

Mayayana can I use these 'uninstall' strings to silently uninstall
applications outside of WMI? Is that what you were referring too by
"go(ing) though the Registry, like the Add/Remove applet does"? If so
could you point me in the right direction for achieving that? I'm a
bit out of my depth here and I'm not sure how to use these uninstall
strings.

7-Zip is just an app I'm picking on for testing purposes as its a
quick job to reinstall it if need be. But there is a whole series of
apps that I'm trying to uninstall (Winrar, Powerdvd, Nero, Mcafee,
Photoshop, Paintshop, Winzip... with plenty of others to follow), and
some of them appear not to have been installed by the Windows MSI. So
as it stands my script isn't looking too great at the moment as I've
built the whole thing around WMI in the assumption it would work for
any application (after testing it with McAfee and finding that it
worked flawlessly I didn't think to try it on anything else - stupid-
arse!).

Thanks again,

Colin
.



Relevant Pages

  • Re: Problem uninstalling app via GPO
    ... Simulate a silent uninstall as follows... ... - Install the original MSI on a PC using the command line; ... MSIEXEC /i /qb+ ... tried to use the Upgrade tab in a new GPO, ...
    (microsoft.public.win2000.group_policy)
  • Re: RAD Studio: Get rid of another 343 MB...
    ... The original file can be tucked away in a CAB file inside a MSI file, ... the original file can be larger than the compressed original and the expanded patched file. ... My point is that there are a number of cases where an uninstall COULD take more space than the previous install, hence the need for checking disk space before an uninstall. ...
    (borland.public.delphi.non-technical)
  • Re: ASP.Net 2.0 Uninstall
    ... I found the msi. ... I rgith clicked and tried to uninstall. ... until you find the one which corresponds to the .Net Framework 2.0. ... That is not the correct install path. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: "Select * from Win32_Product" Not Finding All Apps
    ... It's really up to the installer to ... to add a key to the Uninstall key. ... MSI uses GUIDs as key names. ... program with an MSI file then Windows Installer doesn't know ...
    (microsoft.public.scripting.vbscript)
  • Re: About unable to uninstall security policy package
    ... > MSI file, and choose uninstall from menu. ... the policy level config file is overwritten. ...
    (microsoft.public.dotnet.languages.csharp)