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
Even I try with winrar.exe
and zip.exe
files giving the same result. Is this right way to do?
Please try this:
$pathvargs = {C:\Temp\UpgradeClientInstaller\setup.exe /S /v/qn }
Invoke-Command -ScriptBlock $pathvargs