Silently Install EXE and MSI setup applications (Unattended) - How To Guide

Written by Radu Popescu · April 28th, 2022

#MSI

If you are a System Administrator, IT Pro, or Developer, and want to find out how to perform a silent MSI or EXE installation – this article is for you!

In this article, we're diving into silent installations and discussing the following topics:

  • What is a silent install?
  • Where and why do we need an application to be silently installed?
  • Application installer types: MSI vs EXE
  • How to create a silent unattended installation?

What is a silent installation?

A silent (or unattended) installation is the ability to install an application package, most frequently an MSI or an EXE, without any user interaction. This means that the user will no longer need to go through the install wizard (and click Next multiple times). The application will be installed automatically by calling the installer with specific silent install parameters.

Where and why do we need an application to be silently installed?

Silent installations are often the most useful within Enterprise environments.

Imagine a company with more than 1000 users and computers where you need to install an application on all machines but most of the users are not necessarily tech-savvy. It wouldn't make sense to use a CD/USB stick and manually install the application by yourself because it will take ages.

We can assume that in Enterprise environments, some users would be able to install the app, but the majority may not have the technical knowledge or administrative privileges to install software by themselves.

This is why we will see Configuration Management tools like Microsoft SCCM (MECM), Intune, Ivanti Landesk, Empirium Matrix42 often being used in Enterprise Environments.

These configuration management tools help to automate the integration of application packages in the infrastructure with the corresponding install parameters and then deploy them to the user’s machine. This is done through silent installation.

The user will just have to make a request for a specific software (usually in the ticketing system or in the application catalog if implemented) and it will be automatically installed on their machine.

Application installer types: EXE vs MSI

There are two main Windows installer package formats: EXE and MSI. Depending on the format, the way to install the application silently will differ and in some cases, you will not be able to silently install an application at all.

Don’t worry, we will cover those particular cases here in this article and what must be done in that situation.

Besides MSI and EXE, the newest format that Microsoft released, is the MSIX which is automatically installed silently when it is integrated into deployment tools such as Configuration Manager or Endpoint Manager.

NoteIf you want to learn more about MSIX, read out our MSIX Tutorial.

How to silently install an MSI Package

MSI stands for Microsoft Installer and it’s the Windows standard installer format. It uses msiexec.exe to install the setup and accepts the standard MSI parameters.

MSI's silent install standard command line parameters are as follows:

  • /quiet - quiet mode (there is no user interaction)
  • /passive - unattended mode (the installation shows only a progress bar)
  • /q - set the UI level:
  • n - no UI
  • n+ - no UI except for a modal dialog box displayed at the end.
  • b - basic UI
  • b+ - basic UI with a modal dialog box displayed at the end. The modal box is not displayed if the user cancels the installation. Use qb+! or qb!+ to hide the [ Cancel ] button.
  • b- - basic UI with no modal dialog boxes. Please note that /qb+- is not a supported UI level. Use qb-! or qb!- to hide the [ Cancel ] button.
  • r - reduced UI
  • f - full UI

A regular command line to silently install an MSI should look like this:

 Msiexec /i <applicationname.msi> /qb! /l*v install.log
Command line for MSI silent installation

The /l*v install parameter is used to create an installation log. Having an installation log is useful because when you run a silent installation, the GUI is hidden and the errors are not shown.

In addition to the silent installation parameters, an MSI accepts properties. So, for instance, you can tell your MSI application where the install location should be by typing the INSTALLDIR property from the following command line:

Msiexec /i <applicationname.msi> INSTALLDIR=C:\MYDIR /qb! /l*v install.log

NoteYou can find more information on all MSI install parameters in the Advanced Installer MSIEXEC command line user guide.

NoteIf you are a developer and want to create an MSI silent installation package, you can check out our step-by-step guide on How to Create a Silent Installation MSI package?

How to silently install an .EXE file?

When it comes to the .exe format type of installer, compared to the MSI, there is no standard process regarding silent install parameters. These parameters will vary depending on the software that was used to create the setup installer.

But, if there's no standard process, how do we find the silent install parameters?

Here are a couple of methods worth trying:

1. Check if setup.exe has some install parameters by calling the setup.exe in a cmd and typing in the /? or /help. This will usually open a help/usage message box.

Setup.exe /? /help
//cmd photo of msg box

2. Access the vendor’s application support page or forum. There, you may find what install parameters the application supports and it might also give you full silent install instructions. That is if the vendor decided to create a support page.

3. If none of the above methods work, you could open the setup.exe by double-clicking on it until you see the installation wizard.

Usually, in the installation wizard, you can notice which tool/packaging program was used to package the installer. With this information, you can go to the official website of the tool and search for the default installation parameters.

NoteRegardless of the default parameters, some developers might choose not to include any silent install parameters for their installer – but this is NOT a recommended practice.

Which are the most common application packaging tools and their silent install parameters for setup.exe?

Advanced Installer’s silent install parameters for setup.exe

/? and /help

Both these commands will display a help dialog containing the command-line options for the EXE setup.

/exenoui

Launches the EXE setup without UI.

/exebasicui

Launches the EXE setup with basic UI. The UI level set using the above command-line options will overwrite the default UI level specified when the package was built.

<msiOptions>

Options for msiexec.exe on running the MSI package.

Command example:

Setup.exe /exenoui /qn /norestart 

The full list of the supported parameters can be found in the Advanced Installer User Guide.

Installshield’s silent install parameters for setup.exe

/r

Launches the EXE setup in recording mode, which will generate a response file that later will be called to perform a silent installation.

/s

Launches the EXE setup in silent mode and uses the response file mentioned previously. The response file must be present in the same folder with the setup.exe.

/s /v/qn

Launches the Exe setup in silent mode and uses the Basic MSI install parameters.

Command example:

Setup.exe /s /v"/qn INSTALLDIR=D:\Destination" 

WiX Toolset’s silent install parameters for setup.exe

/? ; /h ; /help

Launches the help message box which displays the other supported install parameters.

/q ; /quiet ; /s ; /silent

Launches the EXE setup in silent mode.

/passive

Launches the Exe setup in silent mode with a progress bar only, displaying installation progress.

/l ; /log

Creates an installation logfile.

/norestart

Tells the setup.exe not to perform any required reboots.

Command example:

Setup.exe /q /log /norestart

Inno Setup’s silent install parameters for setup.exe

/? ; /HELP

Launches the help message box which displays the other supported install parameters.

/SILENT

Launches the EXE setup in silent mode with a progress bar only, displaying installation progress.

/VERYSILENT

Launches the EXE setup in silent mode with no display whatsoever.

/LOG

Creates an installation log file in the user’s temp folder. For a custom log file location use:

/LOG=”filename”
/NORESTART

Tells the setup.exe not to perform any required reboots.

Command example:

Setup.exe /VERYSILENT /LOG /NORESTART

NSIS’s silent install parameters for setup.exe

/S

Launches the EXE setup in silent mode.

/D

Sets the default installation directory. It must not contain any quotes. Only absolute paths.

Command example:

Setup.exe /S /D=c:\My custom installdir

Use Application Repackaging When You Have No Support for Silent Installation

You have tried all the above methods for the setup.exe and unfortunately, you came to the conclusion that it does not support silent installation.

If there is no MSI version of the application or the EXE setup does not support silent installation, use application repackaging.

Repackaging your application with Advanced Installer into an MSI or an EXE will fully support silent installation.

The Advanced Installer Repackager allows you to capture software installation and/or OS changes by performing a comparison between an initial and a final system snapshot. The result can then be built into a new installation package (32 or 64 bit), as an MSI, MSIX, or App-V installer.

NoteGet a full walkthrough on the repackager in our comprehensive blog article The Repackager or the Modern Technique of Application Packaging.
Also, check out this demo video to learn how to use the Advanced Installer Repackager.

How to silently install Advanced Installer EXE setups?

To trigger a silent installation of a setup.exe with Advanced Installer, you need to use the /exenoui install parameter. Besides setting the install display level of the main setup, this parameter also controls the display level of the MSI or EXE packages included as prerequisites in a bootstrapper Advanced Installer project.

Let’s assume you have three MSI packages that you need to install silently from a setup.exe.

To do that, follow these steps:

  1. Navigate to the Prerequisites page from your Advanced Installer project.
  2. Add each package as a Feature-based prerequisite.
Add package as feature-based prerequisite

ImportantYou NEED to set up the corresponding install command lines from the Setup Files tab for each application.

You can see in the below screenshot that for the Silent (no UI) we have the /qb! Silent install parameter specific for MSI applications.

Silent install parameter specific for MSI

As mentioned earlier, when the main setup.exe is executed with the /exenoui parameter, it will take into consideration the silent (no UI) parameters of each application you added.

NoteIn case you want to add setup exes instead of MSI, you have to check the application manufacturer of each specific application for the supported silent install parameters.

For more details, you can check out our comprehensive guide on how to create a suite installation and how to silently install the SQL Server Express 2019 Prerequisite into the main installation package.

Conclusion

Silent installations are a great way to install software. This type of installation is especially useful for businesses that want to deploy their software on multiple computers without the need for user input or interaction.

Silent installations are automated and less time-consuming as they allow you to deploy your software more efficiently.

Let us know if you found this article useful and leave questions for us!

Get Advanced Installer 30-day full-featured Trial for your silent installations - Repackager included!

Subscribe to Our Newsletter

Sign up for free and be the first to receive the latest news, videos, exclusive How-Tos, and guides from Advanced Installer.

Comments: