With BAT/CMD
script I can simply use "msiexec /i <whatever.msi> /quiet /norestart"
and then check %errorlevel%
for the result.
With VBScript
, using the Wscript.Shell
object Run()
method, I can get the result like this:
"result = oShell.Run("msiexec /i ...", 1, True)"
How can I do this with PowerShell?