up vote 2 down vote favorite
2
share [g+] share [fb]

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

link|improve this question

75% accept rate
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
feedback

4 Answers

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.

link|improve this answer
feedback

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
link|improve this answer
feedback

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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