The following script will uninstall Windows Installer based Applications in silent mode. Script will take ProductCode of the application as an input, you just need to specify the Product Code of the application.
Option Explicit 'all variables must be defined Dim oReg, oShell, oFSO Dim UninstallString, ProductCode Dim strComputer, colItems, objWMIService, objItem Dim strKeyPath, subkey, arrSubKeys strComputer = "." '******************************** 'Enter Product Code Of The Application Here That You Want To Uninstall within the Bracket ProductCode = "{AC76BA86-1033-0000-7760-000000000004}" '******************************** ' Get scripting objects needed throughout script. Set oShell = CreateObject("WScript.Shell") '************************** UninstallString = "MsiExec.exe /X" & ProductCode & " /qn" & " /norestart" Const HKEY_LOCAL_MACHINE = &H80000002 Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ strComputer & "\root\default:StdRegProv") strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys For Each subkey In arrSubKeys IF subkey = ProductCode Then oShell.Run UninstallString, 1, True End If Next Set oShell = Nothing Set oReg = Nothing '************* End Code ************
For your convenience, I've attached a script.
I hope this will help.
Thanks, Sid