Running a silent installation using cmd

Anonymous
2021-03-05T10:25:41.35+00:00

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 for business Windows Client for IT Pros User experience Other
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2021-03-08T02:11:49.447+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Teemo Tang 11,466 Reputation points
    2021-03-08T06:53:01.543+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.