How to silently install exe using powershell
Asked Answered
M

3

6

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?

Mickel answered 9/5, 2017 at 11:14 Comment(1)
This depends on the installer. Many (but perhaps not all) have ways to silently install, but they all differ, and sometimes some sort of unattended installation script is needed.Corbitt
S
7

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.

Showbread answered 9/5, 2017 at 11:30 Comment(3)
thanks for the quick reply but I'm still not able to install silently using this command.Mickel
@GaurangDave Just because my answer to this question was not applicable to your problem isn't a reason for a down vote it.Showbread
For me this command worked: Start-Process -Wait -FilePath FILE_PATH -ArgumentList '/S','/v','/qn' -passthruNemhauser
S
7

Please try below command in powershell, it will install silently along with wait and ouput. Note: Your installer should be supporting /S option and didn't try with LotusNotes.

Start-Process .\installer.exe /S -NoNewWindow -Wait -PassThru
Sayers answered 26/4, 2019 at 19:27 Comment(0)
M
0

use this

 Start-Process -FilePath "D:\Software\app.exe /S /NoPostReboot _?=D:\Software\app.exe" -NoNewWindow -Wait -PassThru $process.ExitCode
Muckraker answered 29/8, 2020 at 0:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.