powershellpowershell-3.0

EXE silent installation


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?


Solution

  • Please try this:

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