Share via

Silent Installation using cmd/batch file

winprofessional 41 Reputation points
Mar 5, 2021, 10:39 AM

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
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
{count} votes

3 answers

Sort by: Most helpful
  1. MotoX80 35,596 Reputation points
    Mar 8, 2021, 2:25 AM
    0 comments No comments

  2. Teemo Tang 11,456 Reputation points
    Mar 8, 2021, 7:00 AM

    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

  3. winprofessional 41 Reputation points
    May 10, 2021, 6:43 AM

    As far as I could understand, the vendor might have included the silent installation switches when they packed the setup exe. The command Setup.exe /? will list the switches. Thanks

    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.