Re: Using WMI Scripting to Uninstall Acrobat Reader using Win32_Produc



Not Program Files.

But subfolder e.g. darn stupid c:\Program Files\IamWithStupid\woah.exe

---------------

run regclean


http://search.microsoft.com/results.aspx?q=regclean&l=en&OtherSite=&mkt=en-US&FORM=QBMA




"asdf" <asdf@xxxxxxxx> wrote in message
news:u1A2sJhDHHA.1016@xxxxxxxxxxxxxxxxxxxxxxx
Remove/Rename that install folder e.g. Program Files.

run regclean.exe

----------------------



"bhall" <bhall@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7957DDF6-D624-42E3-93F6-FD5559286502@xxxxxxxxxxxxxxxx
Hello!

I'm trying to remove all versions of Adobe Acrobat Reader where the name
matches "Adobe Reader" except for "Adobe Reader for Pocket PC".

The following script works to uninstall everything matching "Adobe
Reader":
---------------------------------
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")

Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product Where Name LIKE '%Adobe Reader%'")
For Each objSoftware in colSoftware
objSoftware.Uninstall()
Next
---------------------------------

However, I can't figure out how to exclude everything matching "Adobe
Reader
for Pocket PC". I tried doing something like:
---------------------------------
("Select * from Win32_Product Where Name LIKE '%Adobe Reader%' AND NOT
LIKE
'%Adobe Reader for Pocket PC%'")
---------------------------------

But that didn't work. When using WQL queries, it seems that it is
difficult
if not impossible to exclude a string from your query. If anyone else
has
any insights, please share. I found the following links somewhat
helpful,
although I'm still not sure how to tackle this:
http://www.microsoft.com/technet/scriptcenter/topics/win2003/like.mspx,


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/like_operator.asp

Thanks in advance!


.



Relevant Pages

  • Re: Using WMI Scripting to Uninstall Acrobat Reader using Win32_Produc
    ... I'm trying to remove all versions of Adobe Acrobat Reader where the name ... Set colSoftware = objWMIService.ExecQuery _ ... I can't figure out how to exclude everything matching "Adobe ...
    (microsoft.public.scripting.wsh)
  • Re: Freeware PDF Reader
    ... the Adobe Reader hogs 113.5MB of HD ... than Adobe Acrobat Reader. ... Adobe Digital Editions will do it. ... Adobe installed and working 7.59 MB - Foxit 3.92 MB ...
    (microsoft.public.windowsxp.basics)
  • Re: AVAST reports Murlo in ADOBE files
    ... | installed Adobe Acrobat reader. ... I'm running AVAST and it ... If you got Adobe Reader directly from Adobe, not some third party, then the files are clean. ... When you get the report, please post back the exact results. ...
    (alt.comp.anti-virus)
  • Re: Flash Player
    ... Adobe also ... has quietly distributed acroread "phone home" spyware: ... # Disable Adobe Acrobat Reader version 7 spyware ...
    (comp.os.linux.misc)
  • Re: Flash Player
    ... Adobe also ... has quietly distributed acroread "phone home" spyware: ... For that reason, if I must use acroread, I've added this to /etc/hosts: ... # Disable Adobe Acrobat Reader version 7 spyware ...
    (comp.os.linux.misc)