Exe silent installation

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

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

giving /sin the argument list, it should be installed without user intervention, but a popup window showspowershell issue

Even I try with winrar.exeand zip.exefiles giving the same result. Is this the right way to do it?

+6
source share
5 answers

Please try the following:

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

Have you tried the following:

Start-Process -Wait -FilePath "C: \ Setup.exe" -ArgumentList "/ S" -PassThru

+2
source

, Windows UAC, .

  1. β†’ β†’
  2. .
  3. " ".

- .

0
source

Try this:

Start-Process -FilePath C:\setup.exe -Args '/silent/install' -Verb RunAs -Wait;

0
source

add -NoNewWindow to stop the popup

-1
source

Source: https://habr.com/ru/post/1608445/


All Articles