iLoveConverter
Categories 11 categories

The Windows Installer (.msi) Format, Explained

iLoveConverter Team 3 min read

On this page

MSI — originally Microsoft Installer, now Windows Installer — is the standard package format for installing applications on Windows. Unlike a standalone .exe installer, an .msi file is a database-driven package that the Windows Installer service reads to install, update and uninstall software. Every Microsoft app and many third-party tools use MSI; it is the backbone of enterprise software deployment on Windows.

MSI file structure

A .msi is actually an OLE Compound Document — the same binary container format that Word .doc, Excel .xls and PowerPoint .ppt use. Inside that container you find multiple SQL-like tables describing the install:

  • Property table — install-time variables (ProductName, Manufacturer, Version, INSTALLDIR).
  • Feature table — what can be selected or deselected during custom install.
  • Component table — individual files, each with a GUID for tracking and patching.
  • File table — mapping of source files to destination locations.
  • Registry table — registry entries to create or update.
  • Shortcut table — desktop and Start Menu shortcuts.
  • Condition / CustomAction tables — conditional install logic and arbitrary scripts.
  • Binary tables (Binary, Icon) — embedded assets.

You can inspect all tables with Orca (part of the Windows SDK) or with lessmsi (open source tool that also extracts files).

MSI vs EXE installers

AspectMSIEXE Installer
StandardizationYes — strictly schema-drivenNo — depends on vendor
Silent installYes (msiexec /i /qn)Hit or miss; depends on tool
RollbackYes — Windows Installer tracks everythingRare
Group Policy deployableYesNo
Multiple featuresYes — built-in feature treeSometimes
Custom UIMSI UI or externalFully custom
Elevation handlingStandard UAC promptsVaries
ExtractableYes with toolsSometimes

Enterprise IT departments love MSI because they can push hundreds of apps via Group Policy without ever touching a mouse.

Common MSI operations

Silent install:

msiexec /i "package.msi" /qn

Specify install directory:

msiexec /i "package.msi" /qn INSTALLDIR="C:\Apps\MyApp"

Uninstall:

msiexec /x "package.msi" /qn
# or by ProductCode GUID (from Orca)
msiexec /x {GUID} /qn

Extract files without installing:

# msiexec has built-in admin extract
msiexec /a "package.msi" TARGETDIR="C:\extract" /qn
# or use lessmsi (GUI + CLI)
lessmsi x package.msi "C:\extract"

Building MSIs

  • WiX Toolset — XML-based, industry standard. Your .wxs file defines components and features; candle compiles it and light produces the .msi.
  • InstallShield — commercial GUI tool. Widely used but expensive.
  • Advanced Installer — commercial GUI with free tier.
  • Inno Setup / NSIS — actually produce .exe installers, not MSI. Use WiX or InstallShield if you need MSI.

What MSI cannot do alone

  • Downloads during install — not supported natively; use a Bootstrapper (WiX Burn, InstallShield Prerequisites).
  • Bundle multiple MSIs — each package has one ProductCode; again, use a bootstrapper.
  • Native bootstrapping — the .msi itself is always a payload, never a self-extracting archive.

Common problems

  • “The system administrator has set policies to prevent this installation” — Group Policy or AppLocker is blocking MSI installs.
  • Elevation required — MSI installers that write to Program Files need admin rights. UAC will prompt.
  • Corrupt MSI database — rare; re-download the file or run sfc /scannow.
  • Multiple MSIs of the same app installed — each has a different ProductCode; use Add/Remove or msiexec /x for each.

FAQ

Is MSI still used?

Absolutely. Microsoft still ships MSIs for Office, Visual Studio and all server products. Enterprise deployment depends on it.

Can MSI install on Linux?

No. MSI is Windows-only. Linux equivalents are .deb, .rpm, .AppImage, .flatpak.

What is the difference between MSI and MSIX?

MSIX is the modern successor (2018) from Microsoft. It is ZIP-based, supports containerised apps, but is mostly for UWP/MSIX packages. MSI remains dominant for classic Win32 installers.

Can I convert EXE installer to MSI?

Yes, using tools like Repackager (Advanced Installer) or by running the EXE in a virtual machine before/after and diffing system state. It is tedious but possible.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: MSI (.msi) , ZIP (.zip) , 7Z (.7z)