Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the command line to silently install an MSI file?

share|improve this question
    
Not all MSIs will allow silent installation, I don't think. –  Eddie Jun 23 '09 at 2:23
    
Find a full list of Command Line options here: msdn.microsoft.com/en-us/library/aa367988.aspx –  Qwerty Jun 23 '09 at 2:31
    
@Eddie: all real MSI files can be installed in silent mode by design, but it is indeed possible for vendors to mess this up by putting non-standard constructs into the MSI (custom actions). –  Glytzhkof Sep 19 '09 at 17:11

4 Answers 4

up vote 5 down vote accepted

Standard Installer Command-Line Options

/quiet

Quiet display option.

The installer runs an installation without displaying a user interface.

Examples:

msiexec /package Application.msi /quiet
msiexec /uninstall Application.msi /quiet
msiexec /update msipatch.msp /quiet
msiexec /uninstall msipatch.msp /package Application.msi / quiet

Note The equivalent Windows Installer Command-Line Option is /qn.

msiexec

run this command to find more information about the installation options.

share|improve this answer

You got some good answers here already, but I just want to add the "quick and easy" way : use the "command line builder tool" from Altiris (direct download). I am very experienced with msiexec.exe, but the command lines are so long that it is easy to make mistakes. I prefer to generate the complex ones and eliminate that error source.

N.B: hope posting download links to tools is ok! I am not affiliated with Altiris in any way. It's a free tool, it's easy to use and it works. Here is a screenshot:

enter image description here

share|improve this answer

See the docs for "Unattended": http://unattended.sourceforge.net/installers.php

In short, while there are ways to cause them to fail, these flags should work:

 msiexec /qb /i blah.msi REBOOT=ReallySuppress
share|improve this answer

There's also these:

/q , /qn  No UI.
/qb       Basic UI.
/qb!      Basic UI with no cancel button.
/qr       Reduced UI. A modal dialog box is displayed at the end of the install.
/qf       Full UI. A modal dialog box is displayed at the end of the install.
/qn+      No UI. However, a modal dialog box is displayed at the end of the installation.
/qb+      Basic UI. A modal dialog box is displayed at the end of the installation. If you         cancel the installation, a modal dialog box is not displayed.
/qb-      Basic UI with no modal dialog boxes.

source: http://www.ss64.com/nt/msiexec.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.