Warm tip: This article is reproduced from stackoverflow.com, please click
powershell powershell-3.0

EXE silent installation

发布于 2020-09-23 03:13:22

I have following PowerShell script to install application without user intervention:

Start-Process -FilePath "C:\Temp\UpgradeClientInstaller\setup.exe" -ArgumentList "/S /v/qn"

by giving /s in argument list, it should install silently without user intervention but a popup is showing powershell issue

Even I try with winrar.exe and zip.exe files giving the same result. Is this right way to do?

Questioner
Ramesh Bolla
Viewed
4
167 2016-11-17 21:59

Please try this:

$pathvargs = {C:\Temp\UpgradeClientInstaller\setup.exe /S /v/qn }
Invoke-Command -ScriptBlock $pathvargs