I am trying to perform a silent uninstall of Yahoo! toolbar.  The current script I create under "configuration policy" will uninstall the program, but will not disable it. Also, it does not delete the directory "C:\program files\Yahoo!" like I specified.  Anyone else have issues with this?  Does anyone know how to use kbox 1000 to completely remove this from a user's computer?  I'm at a loss here, kinda new to kbox scritping and this one is frustrating me.

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

Does your script kill any open browsers prior to the uninstall?  If not, I'd consider doing that first, along these lines (via batch file):

taskkill /F /IM iexplorer.exe
taskkill /F /IM iexplore.exe
taskkill /F /IM firefox.exe
taskkill /F /IM chrome.exe

:: Just for shorten and avoid errors, creating a env for command
set tl=tasklist /nh /fo csv /m
:: Terminate all ActiveX consumers...
FOR /F "delims=, tokens=1,2,3*" %%a IN ('%tl% flash*') DO taskkill /f /im %%a 2> nul
:: Terminate all Plug-in consumers..
FOR /F "delims=, tokens=1,2,3*" %%a IN ('%tl% npsw*') DO taskkill /f /im %%a 2> nul

The reason the directory isn't getting deleted may be related to a file that's still in use (in memory) when the uninstall runs.  Hopefully killing things as above will allow the directory to be deleted.

The other thing I'd check would be to reboot a target machine and see if things are gone following the reboot (since you said the program does get uninstalled).

John

 

Answered 12/31/2012 by: jverbosk
Red Belt

  • Thank you so much, I will add this to my existing script and mark as answered if this works. I really appreciate your input.
Please log in to comment
Answer this question or Comment on this question for clarity

Share