Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I do a silent install and uninstall with WiX and MSI?

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?

like image 734
MX4399 Avatar asked May 24 '10 17:05

MX4399


People also ask

How do I deploy MSI in silent mode?

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.

Is MSI a silent install?

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.

Where is the silent install switch for MSI?

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.


2 Answers

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 
like image 168
Christopher Painter Avatar answered Nov 11 '22 14:11

Christopher Painter


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:

  • /quiet - Displays no UI whatsoever
  • /passive - Displays a UI but requires no user input. Essentially just displays an install progress bar

This answer is based on WiX 3.9.

like image 40
Kevin Kalitowski Avatar answered Nov 11 '22 15:11

Kevin Kalitowski