How can a silent installer be created in WiX that does not display any UI dialogs to the user and installs, upgrades and uninstalls with default settings?
If you are looking for complete silence then you also need the MSI to run in quiet mode. You achieve this by running the msiexec.exe with the /qn switch. This switch means quiet and no interface.
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. If you want to learn more about MSIX, read out our MSIX Tutorial.
When you install an MSI file, you can be assured that certain parameters will exist, such as the silent parameter /quiet or /qn. You can get a list of the supported parameters in PowerShell or CMD by typing msiexec.exe /?. This command will display the usage statement.
Windows Installer (MSI) uses the following command line arguments to be silent:
Silent install or silent major upgrade:
msiexec.exe /i foo.msi /qn
Silent minor upgrade:
msiexec.exe /i foo.msi REINSTALL=ALL REINSTALLMODE=vomus /qn
Silent uninstall:
msiexec.exe /x foo.msi /qn
Executable path:
C:\Windows\system32\msiexec.exe
Installer .exe's created with WiX can be run from the command line without requiring user input by using one of these command line parameters:
This answer is based on WiX 3.9.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With