Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 887
Ramesh Bolla Avatar asked Sep 22 '15 09:09

Ramesh Bolla


People also ask

What is a silent installation?

A silent install is used to install an application without the need to interact with the UI. This type of installation is helpful for applications with limited installation steps. Before commencing the silent install, certain parameters such as Name, EmailId, Path, etc., are automatically set or manually entered.

What is Windows silent installation?

Silent installation enables you to define the options for installing Internet Service Monitoring in an installation response file, then run the installation process from the command line without interactive input. This method is useful for performing repeated installations.


2 Answers

Have you tried the following command?

Start-Process -Wait -FilePath "C:\Setup.exe" -ArgumentList "/S" -PassThru
like image 154
Shreyas Ezhava Avatar answered Oct 13 '22 10:10

Shreyas Ezhava


Please try this:

$pathvargs = {C:\Temp\UpgradeClientInstaller\setup.exe /S /v/qn }
Invoke-Command -ScriptBlock $pathvargs
like image 25
VGSandz Avatar answered Oct 13 '22 10:10

VGSandz