Windows Installer V3 thru V4.5 – Microsoft – Basic Use


The Microsoft Windows Installer (MSI) is the application installation and configuration service for Windows.

Common Options:

Install Options:
Install a product
/i {Product.msi}

Administrative install – Installs or extracts a product to a drive or network point
/a {Product.msi}

Uninstall the product
/x {Product.msi or ProductCode}

Display Options
Quiet mode, no user interaction
/quiet

Unattended mode – progress bar only
/passive

Set user interface level to No UI
/qn

Set user interface level to Basic UI
/qb

Restart Options
Do not restart after the installation is complete
/norestart

Always restart the computer after installation
/forcerestart

Setting Public Properties
[PROPERTY=PropertyValue]

Examples:
To start an install of Adobe Reader:
msiexec.exe /i “AcroRead.msi”

To start an uninstall of Adobe Reader:
msiexec.exe /x “AcroRead.msi”

To perform a silent install of Adobe Reader:
msiexec.exe /i “AcroRead.msi” /q

To perform a silent uninstall of Adobe Reader:
msiexec.exe /x “AcroRead.msi” /q

To perform a silent uninstall of Java SE Run-Time Ver 6 update 7 using the product code:
msiexec /x {3248F0A8-6813-11D6-A77B-00B0D0160070} /qb-!

To perform a silent install of Adobe Reader and force a restart after completion:
msiexec.exe /i “AcroRead.msi” /q /forcerestart

Links:
Windows Installer V3 thru V4.5 – Microsoft – Full Command Line Options
https://mooremn.wordpress.com/2009/08/30/windowsinstallerv45-mscommand-line/ 

Overview of the Windows Installer Technology
http://support.microsoft.com/kb/310598

Windows Installer
http://en.wikipedia.org/wiki/Windows_Installer

Advertisements