arrCommands = Serie (_
„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“ _
)
Reeks objShell = CreateObject („WScript.Shell“)
strResult = „gedesinstalleerde Software: “ & VbCrLf & Koord (21, „=“)
Voor Elke strCommand in arrCommands
intReturn = objShell.Run (strCommand, Ware 0,)
Als intReturn = 0 toen
strResult = strResult & VbCrLf & „SUCCES: “ & strCommand
Anders
strResult = strResult & VbCrLf & „MISLUKKING: “ & strCommand
Eind als
Daarna
MsgBox strResult
|