arrCommands = Array( _
"MsiExec.exe /X{5783F2D7-5001-0409-0002-0060B0CE6BBA} /QN /NORESTART", _
"MsiExec.exe /X{5783F2D7-0301-0409-0002-0060B0CE6BBA} /QN /NORESTART", _
"MsiExec.exe /X{BA3B0FA5-1EAD-476B-8E8D-6569CBC3E154} /QN /NORESTART" _
)
Set objShell = CreateObject("WScript.Shell")
strResult = "Software uninstalled:" & VbCrLf & String(21, "=")
For Each strCommand In arrCommands
intReturn = objShell.Run(strCommand, 0, True)
If intReturn = 0 Then
strResult = strResult & VbCrLf & "SUCCESS: " & strCommand
Else
strResult = strResult & VbCrLf & "FAILURE: " & strCommand
End If
Next
MsgBox strResult
|