Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to silently install exe using powershell

I am trying to install trial version of Lotus Notes Designer using Powershell command

Start-Process -FilePath "EXEPath" -Verb runAs -ArgumentList "/qn"

But this command displays the normal installation wizard, how do I make it a silent installation?

like image 209
Neha Avatar asked May 09 '17 11:05

Neha


People also ask

Can you run an exe silently?

Inno Setup's silent install parameters for setup.exeLaunches the EXE setup in silent mode with a progress bar only, displaying installation progress. Launches the EXE setup in silent mode with no display whatsoever.

How do I make a silent install executable?

If your installer is InstallShield you can use this command: setup.exe /s /v/qb for silent install with basic MSI UI or setup.exe /s /v/qn for silent installation without any UI.


Video Answer


1 Answers

Silent Install commands vary depending on the program itself and the installer they have used. Using /qn will work for most (but not all!) MSI installers, as there is a Microsoft standard that most will follow, but EXE installers can be very different as they do not have guidelines like an MSI.

Searching for the name of the program and 'silent install' will likely bring up the programs help pages or a blog which lists the commands you will need to use.

A search for "lotus notes designer silent install" brings up this article which lists the command as:

setup.exe /s /v"/qn"

Which you would use like this:

Start-Process -FilePath "C:\folder\setup.exe" -Verb runAs -ArgumentList '/s','/v"/qn"'

Note: I can't test this as I don't use Lotus Notes, but it should work, or at least give you a good idea on what to do.

like image 150
henrycarteruk Avatar answered Sep 18 '22 11:09

henrycarteruk