I am trying to install an .exe
application (Win32 Cabinet Self-Extractor) silently from command line using this PowerShell command:
Start-Process -FilePath "C:\Temp\MMASetup-i386.exe" -ArgumentList "/s" -wait
But everytime I get a pops up window with this error:
command line option syntax error. Type command /? for help.
What am I doing wrong? I am on Windows Server 2012R2 and using PowerShell-4.
mmasetup-i386.exe /s
from a command line it works? From what you've written it appears that the mmasetup-i386 is reporting an invalid option. What is the ouput ofmmasetup-i386 /?
Start-Process : A positional parameter cannot be found that accepts argument '/?'.