0% found this document useful (0 votes)
16 views2 pages

MSI Command Line Installation Guide

Windows Installer, formerly known as Microsoft Installer, is a built-in service in Windows for managing application installation, maintenance, and removal using MSI files. The document outlines various command line switches for installing, uninstalling, and advertising applications, including options for silent installations and logging. It also highlights the advantages of using Windows Installer, such as self-healing, repair capabilities, and support for unattended installations.

Uploaded by

Saran Neelam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

MSI Command Line Installation Guide

Windows Installer, formerly known as Microsoft Installer, is a built-in service in Windows for managing application installation, maintenance, and removal using MSI files. The document outlines various command line switches for installing, uninstalling, and advertising applications, including options for silent installations and logging. It also highlights the advantages of using Windows Installer, such as self-healing, repair capabilities, and support for unattended installations.

Uploaded by

Saran Neelam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Windows Installer or Microsoft Installer

 An MSI file (or MSI package) was a database file used by the Windows Installer (formerly Microsoft
Installer) to install update information, set registry values, and so on within the Windows Operating
System.
 Windows Installer (previously known as Microsoft Installer) is a built-in Operating System service for
Installing and Managing Applications. It provides a standard method for developing, customizing,
installing and updating applications. It is an engine for the installation, maintenance, and removal of
software on modern Microsoft Windows systems.
Note: To see windows installer service open [Link] (in admin mode) from start menu and
search for windows installer service in the services list shown as below.

To check Windows installer version and supported parameters on your computer open CMD from startMenu
and type “msiexec /?” and enter

Once you enter above command the below window appears and it shows version and all parameters and
switches supported by windows installer.

Confidential C
Command Line Switches

1. Installing an msi from command line


MSIEXEC /I “PATH TO MSI”
2. Installing an msi from command line silently
MSIEXEC /I “PATH TO MSI” /QB Displays progress bar and cancel button
MSIEXEC /I “PATH TO MSI” /QB+ pops up a status windows after the installation
MSIEXEC /I “PATH TO MSI” /QB! Displays progress bar without cancel button
MSIEXEC /I “PATH TO MSI” /QN Displays nothing (Silent installation)
MSIEXEC /I “PATH TO MSI” /QN+ pops up a status window after the installation
3. Installing an msi from command line silently and creating a log file.
MSIEXEC /I “PATH TO MSI” /QB /L*v “c:\logs\[Link]”
4. Installing an msi and applying a transform from command line silently and creating a log file.
MSIEXEC /I “PATH TO MSI” TRANSFORMS=[Link] /QB /L*v “c:\logs\[Link]”
Incase multiple transforms have to be applied then use semicolon to separate the transforms
MSIEXEC /I “PATH TO MSI” TRANSFORMS=[Link];[Link] /QB /L*v “c:\logs\[Link]”
5. Installing an msi from command line silently, applying Public Properties, creating a log file
MSIEXEC /I “PATH TO MSI” ALLUSERS=1 REBOOT=REALLYSUPPRESS /QB /L*v “c:\logs\[Link]”
6. Uninstalling an MSI Silently by creating log file
MSIEXEC /X “PATH TO MSI” /QB /L*v “c:\logs\[Link]”
MSIEXEC /X {productcode of MSI} /QB /L*v “c:\logs\[Link]”
7. Advertising an application
MSIEXEC /J “PATH TO MSI”
Advertising an application to the current user
MSIEXEC /Ju “PATH TO MSI”
Advertising an application to all users of the machine
MSIEXEC /Jm “PATH TO MSI”
Advertising an application to all users and applying a transform
MSIEXEC /Jm “PATH TO MSI” /t [Link]
8. Installing a patch on a workstation silently and creating a log file
MSIEXEC /P “PATH TO MSP” /QB /L*V “C:\logs\[Link]”
Applying Multiple patches to an installed administrative image
MSIEXEC /P [Link];[Link] /A “PATH TO ADMIN INSTALL MSI”

Advantages of Windows Installer or MSI

 Advertising  Self heal and repair


 Installation on Demand,
 Repair (Self-healing)
 Rollback (Transactional operations),
 Unattended Installation via various command line switches,
 Installation in locked-down environments (SCCM, Intune)

Confidential C

Common questions

Powered by AI

Windows Installer supports installations in locked-down environments, such as SCCM or Intune, by providing mechanisms for unattended installations and supporting various command line switches that operate without administrative rights. This facilitates deployments where regular user permissions are restricted. It ensures that applications are installed, updated, or removed in compliance with organizational policies without requiring direct user intervention, ensuring compliance with security protocols and efficient software management in controlled environments .

Some command line options for silent installations with Windows Installer include: 1. `MSIEXEC /I "PATH TO MSI" /QN` - installs the MSI package without displaying any user interface. 2. `MSIEXEC /I "PATH TO MSI" /QN+` - performs a silent installation but pops up a status window after completion. 3. `MSIEXEC /I "PATH TO MSI" /QB` - shows a progress with a cancel button. 4. `MSIEXEC /I "PATH TO MSI" /QB!` - displays progress bar without cancel button. These options enable different levels of user interaction during installation, ranging from complete silence to minimal feedback .

Advertising in Windows Installer allows applications to be 'published' without installing them fully until they are needed, leveraging features like installation on demand and self-healing. This mechanism reduces initial deployment size and setup complexity since only shortcuts or entry points are established on the user's system. When a user selects the application, Windows Installer proceeds to install the necessary components automatically. This is beneficial in scenarios where software needs might change dynamically, ensuring resources are used efficiently .

Command line switches significantly enhance the functionality of the Windows Installer by allowing programmatic control over installation processes. They provide flexibility, such as specifying installation modes (e.g., silent or interactive), managing installations on different user bases, defining installation parameters like logging and error handling, and supporting transformations and patches. This enables sophisticated deployment strategies, like unattended installations in corporate environments and conforming to IT policies. By accommodating these diverse requirements, command line switches enhance the usability and versatility of the Installer .

Silent installation of patches via Windows Installer enhances system maintenance by enabling updates to occur without interrupting users. Administrators can deploy necessary patches automatically across systems with minimal disruption, ensuring software stays up-to-date with the latest security and functionality improvements. This approach streamlines patch management in large environments, minimizes downtime, and maintains consistent software operation without needing user interaction during the update process .

To generate a log file during a silent MSI installation, the command `MSIEXEC /I "PATH TO MSI" /QB /L*v "c:\logs\example.log"` is used, specifying the path for the log file location. This process is important as it provides a detailed record of actions performed during the installation, assisting in diagnosing and troubleshooting any issues encountered. The log file can reveal errors, configurations set, and specific components installed, serving as an essential tool for IT professionals managing large-scale installations .

The Windows Installer's support for transactional operations, such as rollback, greatly enhances software installation reliability by providing a safety net during the installation process. If an installation is interrupted or encounters errors, the rollback feature ensures that the system is returned to its previous state, thus preventing partial installations and inconsistent software states. This transaction-based approach guarantees that the system's integrity is preserved even in the event of an installation failure, minimizing user disruption and maintaining system stability .

Public properties in MSI package installations allow customization and control over installation behavior. They can be set with specific values that influence how the installation executes, such as determining the installation directory, setting user permissions, or suppressing reboots. Their typical use cases include automating installations across multiple machines with pre-set configurations tailored to specific network or user needs, enabling seamless integration with organizational IT frameworks .

The self-healing feature of Windows Installer ensures application robustness and reliability by automatically checking and repairing applications if they are found missing critical components at runtime. Upon detection of such an inconsistency, Windows Installer can automatically re-install the necessary parts from the original installation source, thereby reducing downtime and user frustration. This feature is particularly useful for maintaining system stability and consistency across organization-wide deployments where manual reinstallation efforts are impractical .

The Windows Installer, also known as Microsoft Installer, provides a standardized method for installing, customizing, updating, and removing applications on modern Windows systems. It acts as an engine that handles the software installation process, manages updates, and can uninstall applications. It supports functionalities such as self-healing, rollback of installation actions, unattended installations via command line switches, and installations in locked-down environments like SCCM or Intune .

You might also like