question

CheethanolilThankappanSureshCW-3497 avatar image
0 Votes"
CheethanolilThankappanSureshCW-3497 Suspended asked TeemoTang-MSFT commented

Running a silent installation using cmd

I need to run an installation of a Setup.exe in silent mode using command line. I am using the below in my batch file.

 @echo off
 Setup.exe /quiet

What I need is a silent unattended installation. But when I run the above command, it is not a silent installation and I need to press Next button etc. during the install. Is this the correct switch to use? Any more options? Also it is possible to get the error code if any of the installation?

windows-10-general
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If you resolved it using our solution, please click "Accept Answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

0 Votes 0 ·
MotoX80 avatar image
0 Votes"
MotoX80 answered

Try running:

 setup.exe /?

Normally, a setup program will display the command line switches that it honors.

You could also search the web site of whatever software you are installing to see if they have additional instructions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TeemoTang-MSFT avatar image
0 Votes"
TeemoTang-MSFT answered

Not all .exe installers support silent install. You have a few options:

Run the .exe with /? to see if it has help info (you already tried this - just including it for completeness)
Extract the .exe with 7-Zip to see if there are .msi installers inside. Sometimes the .exe is just a wrapper to detect the architecture and launch the correct .msi.
Consult vendor documentation to see if they have any switches documented or if there is a separate program for configuring installation options (like the OCT for Office VL installs)
Contact the vendor to see if they have a .msi installer available
Use something like AppDeploy Repackager to create a .msi yourself.

Here is a link explaining installer types - http://unattended.sourceforge.net/installers.php


If the Answer is helpful, please click "Accept Answer" and upvote it.
Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.