Windows Server

Msiexec.exe Command Line Switches

Msiexec.exe command line install options install, uninstall, administrative install, advertise a product) display options (full, basic or no UI during the installation restart options (if the machine will be restarted after the installation) logging options.

The Windows Installer technology uses Msiexec.exe for installing MSI and MSP packages. This tool gives you full control over the installation process, allowing you to set various options and parameters as shown below.

Here are some Msiexec.exe switch examples below

/quiet, /q, qn       Fully silent mode
/passive             Unattended mode, shows progress bar only.
/norestart           Do not restart the system after the installation
/forcerestart        Restart the system after installation is complete
/log, /l             Enable Logging

Example: Silently install the MSI package:

msiexec /i C:setup.msi /qn

Silently install the msi package, no reboot

msiexec /i C:setup.msi /qn /norestart

Silently install the msi package and write the installation log to file

msiexec /i C:setup.msi /l*v C:msilog.txt /qn

Silently uninstall the msi package:

msiexec /x C:setup.msi /qn

Silently uninstall the msi package by the product code:

msiexec /x {XXXXXXXX-xxxxxxC6-01Fxxxxxxx1} /qn

See the link below to learn more:

Buy me a coffeeBuy me a coffee

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x