Do you need any other silent un-installations? Just LMK!
Available combined into one file, or as seperate files:
' (c) 2006 Plamdi.com. This file silently uninstalls the Google and Yahoo! Toolbars.
Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}\UninstallString")
If a<>"" Then WshShell.Run(a&" /S"),1,True:i=i+1
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Yahoo! Companion\UninstallString")
If a<>"" Then WshShell.Run(""""&a&""" /S"),1,True:i=i+1
WshShell=Nothing:Wscript.Quit(i)
Save as REMTOOLB.VBS
' (c) 2006 Plamdi.com. This file silently uninstalls the Yahoo! Toolbar.
Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Yahoo! Companion\UninstallString")
If a<>"" Then WshShell.Run(""""&a&""" /S"),1,True:i=1
WshShell=Nothing:Wscript.Quit(i)
Save as REMYAHOO.VBS
' (c) 2006 Plamdi.com. This file silently uninstalls the Google Toolbar.
Option Explicit:On Error Resume Next
Dim WshShell,a,i:i=0:Set WshShell=WScript.CreateObject("WScript.Shell")
a=WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}\UninstallString")
If a<>"" Then WshShell.Run(a&" /S"),1,True:i=1
WshShell=Nothing:Wscript.Quit(i)
Save as REMGOOGLE.VBSAnd here's a tip - if you plan on running this file from the HDD rather than the CD/DVD, you could add these lines:
Dim fso:Set fso=CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(WScript.ScriptFullName)
and script would automatically self-destruct. You would add the lines anywhere after the first line (of code) and before the last line.* Slight modification, the script now waits for the uninstaller to complete before terminating - which is probably better if you're going to use cscript as the uninstaller will finish before processing the next command.
This post has been edited by Plamdi: 23 October 2006 - 11:26 PM



Help
Back to top









