Show Menu
Cheatography

MSIEXEC Command Line Options Cheat Sheet by

Lists commonly used MSIEXEC command line options

General Syntax

msiexec /Option <Re­quired Parame­ter> [Optional Parameter]

Install Options

/i
Installs a Product
/a
Admini­str­ative install - Installs a product on the network
/t
Use Transform List (.MST)
/x
Uninstalls the product

Display Options

/quiet
Quiet mode, no user intera­ction
/passive
Unattended mode - progress bar only
/qn
No UI
/qb
Basic UI
/qr
Reduced UI
/qf
Full UI (default)
/help
Help inform­ation

Restart Options

/norestart
Do not restart after the instal­lation is complete
/promp­tre­start
Prompts the user for restart if necessary
/force­restart
Always restart the computer after instal­lation

Repair Options

Syntax
/f[p|e­|c|­m|s­|o|­d|a­|u|v] <Pr­odu­ct.msi | Produc­tCo­de>
/fp
only if file is missing
/fo
if file is missing or an older version is installed (default)
/fe
if file is missing or an equal or older version is installed
/fd
if file is missing or a different version is installed
/fc
if file is missing or checksum does not match the calculated value
/fa
forces all files to be reinst­alled
/fu
all required user-s­pecific registry entries (default)
 

Logging Options

Syntax
/l[i|w­|e|­a|r­|u|­c|m­|o|­p|v­|x|­+|!|*] <Lo­gFi­le>
/li
Status messages
/lw
Nonfatal warnings
/le
All error messages
/la
Start up of actions
/lr
Action­-sp­ecific records
/lu
User requests
/lc
Initial UI parameters
/lm
Out-of­-memory or fatal exit inform­ation
/lo
Out-of­-di­sk-­space messages
/lp
Terminal properties
/lv
Verbose output
/lx
Extra debugging inform­ation
/l+
Append to existing log file
/l!
Flush each line to the log
/l*
Log all inform­ation, except for v and x options
Multiple uses of the above switches may be combined behind a single "­/l" (/lawe)

Update Options

Syntax
/update <Up­dat­e1.m­sp­>[;­Upd­ate­2.msp]
/p or /update
Applies update(s)
/uninstall
Remove update(s) for a product

Misc Options

/j
Advertises a product
/m
Generates an SMS status .mif file
/? or /h
Displays help
/z
Calls the system function DllUnR­egi­ste­rServer to unregister modules passed in on the command line
/c
Advertises a new instance of the product
/n
Specifies a particular instance of the product
 

Examples

Basic Instal­lation
msiexec /i A:\Exa­mpl­e.msi
Instal­lation & Apply Patch
msiexec /i A:\Exa­mpl­e.msi PATCH=­msi­pat­ch.msp
Instal­lation Files
msiexec /a A:\Exa­mpl­e.msi
Instal­lation with Transform
msiexec /i A:\Exa­mpl­e.msi /T transf­orm.mst
Instal­lation With Logging
msiexec /i A:\Exa­mpl­e.msi /LIME logfil­e.txt
100% Silent Instal­lation
msiexec /i A:\Exa­mpl­e.msi /qn
Instal­lation Only Showing Progress
msiexec /i A:\Exa­mpl­e.msi /qb
Uninstall Using Installer File
msiexec /x A:\Exa­mpl­e.msi
Uninstall Using Product Code
msiexec /x {Installed App's Product Code}
Install & Suppress Restart
msiexec /i A:\Exa­mpl­e.msi /norestart
Install & Force Restart
msiexec /i A:\Exa­mpl­e.msi /force­restart

Correct Syntax Examples

msiexec /i msisam­ple.msi /T transf­orm.mst /qn
msiexec /i A:\Exa­mpl­e.msi PATCH=­msi­pat­ch.m­sp­;ms­ipa­tch­2.msp /qb
msiexec /x {Installed App Product Code} /qn
msiexec /i msisam­ple.msi PATCH=­msi­pat­ch.msp /qb
msiexec /JM msisam­ple.msi /T transf­orm.mst /LIME logfil­e.txt

More Inform­ation

For more inform­ation or details for the above items, run "­msiexec /?" or visit https:­//m­sdn.mi­cro­sof­t.c­om/­en-­us/­lib­rar­y/a­a36­798­8(v­=vs.85­).aspx
                   
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VLC (Windows & OS X) Keyboard Shortcuts
          Sublime Text 2 Windows Keyboard Shortcuts
          LSI Logic MegaRAID Cheat Sheet