Windows Installer – Is It Possible to Disable msiexec Help GUI

msipowershellwindowswindows-installer

I'm automating unattended retrieval & installation of specified .msi packages with a powershell script but if the command is invoked with syntax errors the msiexec will wait indefinitely for an OK click on its help display despite the presence of /quiet and/or /passive.

At the moment I'm invoking it with:

(start-process -FilePath "msiexec" -ArgumentList "/i <path_to_package> /quiet /passive" -PassThru -Wait).ExitCode

Is there any way of disabling the msiexec help display?

Best Answer

Sadly, I think the only way to avoid the help display is to...

...not make any typos/syntax errors.

I wish I had a better answer for you, but...