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
| Aspect | MSI | EXE Installer |
|---|---|---|
| Standardization | Yes — strictly schema-driven | No — depends on vendor |
| Silent install | Yes (msiexec /i /qn) | Hit or miss; depends on tool |
| Rollback | Yes — Windows Installer tracks everything | Rare |
| Group Policy deployable | Yes | No |
| Multiple features | Yes — built-in feature tree | Sometimes |
| Custom UI | MSI UI or external | Fully custom |
| Elevation handling | Standard UAC prompts | Varies |
| Extractable | Yes with tools | Sometimes |
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
.wxsfile defines components and features;candlecompiles it andlightproduces the.msi. - InstallShield — commercial GUI tool. Widely used but expensive.
- Advanced Installer — commercial GUI with free tier.
- Inno Setup / NSIS — actually produce
.exeinstallers, 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
.msiitself 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 Filesneed 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 /xfor 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)