.msi

What is a .msi file?

Windows Installer Package · Disk image · Microsoft · 1999

An MSI is a Windows Installer package: a database of files and rules that Windows uses to install, repair and cleanly uninstall a program. You do not really open an MSI, you run it, and Windows does the installation.

Category
Disk image
Type
Binary
Is a .msi file safe to open? An MSI installs software, so treat it like any executable: only run one from the official vendor, and be wary of MSIs from email or unfamiliar sites. Installing gives the package the ability to change your system.

What is a .msi file used for?

MSI is the format behind Add or Remove Programs. Instead of a one-off setup program, it is a structured database that tells the Windows Installer service exactly what to copy, register and undo, which is why MSI apps uninstall and repair cleanly.

Under the hood an MSI is an OLE2 compound file, the same container legacy Office documents use, so its first bytes match .doc and .xls. The extension, not the signature, is what tells the two apart.

Double-clicking an MSI installs it. IT admins install silently from the command line with msiexec (for example msiexec /i app.msi /quiet) and deploy MSIs across a network with Group Policy.

To look inside without installing, a tool like 7-Zip can list the packaged files. MSI is Windows-only; other systems cannot install one natively.

How to open a .msi file

The .msi format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list.

Windows

  • Double-click to install
  • msiexec (command line install)
  • 7-Zip (to inspect contents)

macOS

  • Not natively supported
  • 7-Zip / msitools (to inspect only)

Linux

  • Not natively supported
  • msitools (to inspect)
  • Wine (limited)

Web

  • Not applicable

How to convert a .msi file

You can convert a .msi file to Not convertible using a conversion tool or the export menu of an app that opens it.

.msi file signature (magic bytes)

Programs recognise a .msi file by the bytes at the start of the file, not by its name. These are the signatures for MSI. For a full breakdown, see the MSI file signature page.

Hex signatureOffsetNote
D0 CF 11 E0 A1 B1 1A E10OLE2 compound file, shared with legacy Office .doc/.xls/.ppt

See the full magic-numbers reference for every format.

Frequently asked questions

What is a .msi file?

An MSI is a Windows Installer package: a database of files and rules that Windows uses to install, repair and cleanly uninstall a program. You do not really open an MSI, you run it, and Windows does the installation.

How do I open or install an MSI file?

Double-click it and follow the installer, or from a command prompt run msiexec /i path\to\file.msi. To inspect the contents without installing, open the MSI in 7-Zip.

What is the difference between an MSI and an EXE installer?

An EXE installer is a program that runs setup however its author coded it. An MSI is a standard database the Windows Installer service processes, which gives Windows consistent install, repair and uninstall, plus silent and network deployment. Many EXE installers simply wrap an MSI inside.

Is an MSI file safe?

Only if you trust the source. Installing an MSI lets it add or change software on your computer, so download packages from the official vendor and be cautious with any MSI you did not expect.

Related formats

Sources

Details on this page were checked against authoritative references: