# Windows Installer

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Windows_Installer
> Markdown URL: https://mediated.wiki/source/Windows_Installer.md
> Source: https://en.wikipedia.org/wiki/Windows_Installer
> Source revision: 1356392988
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

Software

This article is about the [Microsoft Windows](/source/Microsoft_Windows) component. For the installation of the operating system itself, see [Windows Setup](/source/Windows_Setup).

This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Windows Installer" – news · newspapers · books · scholar · JSTOR (May 2020) (Learn how and when to remove this message) This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: "Windows Installer" – news · newspapers · books · scholar · JSTOR (August 2024) (Learn how and when to remove this message) (Learn how and when to remove this message)

Windows Installer Help screen of Windows Installer 5.0 running on Windows 11 Developer Microsoft Release 31 August 1999; 26 years ago (1999-08-31) Final release 5.0 / 22 July 2009; 16 years ago (2009-07-22)[1] Operating system Windows 95 or later Platform IA-32, x86-64, ARM32, ARM64, Itanium Included with Windows 2000 or later Predecessor Microsoft ACME Setup Type Installer License Freeware Website learn.microsoft.com/en-us/windows/win32/msi/windows-installer-portal

Windows Installer Package[2] Filename extension .msi, .msp Internet media type application/x-ole-storage Developed by Microsoft Type of format Archive Container for Installation information and an optional .cab file payload Extended from COM Structured Storage Open format? No

**Windows Installer** (msiexec.exe, formerly named **Microsoft Installer**,[3] [codename](/source/List_of_Microsoft_codenames) **Darwin**)[4][5] is a [software component](/source/Software_component) and [application programming interface](/source/Application_programming_interface) (API) of [Microsoft Windows](/source/Microsoft_Windows), used to [install](/source/Installation_(computer_programs)), maintain, and remove software. The installing information, and optionally the related files, are packaged in *[installation packages](/source/Package_manager)*, loosely [relational databases](/source/Relational_database) structured as [COM Structured Storages](/source/COM_Structured_Storage) and commonly known as "MSI files", from their default [filename extensions](/source/Filename_extension). The packages with the file extensions mst contain Windows Installer "Transformation Scripts", those with the msm extensions contain "Merge Modules" and the file extension pcp is used for "Patch Creation Properties".[6] Windows Installer contains significant changes from its predecessor, Setup API. New features include a [graphical user interface](/source/Graphical_user_interface) (GUI) [framework](/source/Software_framework) and automatic generation of the [uninstallation](/source/Uninstallation) sequence. Windows Installer is positioned as an alternative to stand-alone executable installer frameworks such as older versions of [InstallShield](/source/InstallShield) and [Nullsoft](/source/Nullsoft) Scriptable Install System (NSIS).

Before the introduction of Windows Installer, the Windows Setup API can be used in [Windows 3.x](/source/Windows_3.x) and [Windows 9x](/source/Windows_9x). The Setup API can do file copy, as well as [INI file](/source/INI_file) or [Windows Registry](/source/Windows_Registry) update. Since Windows 2000, use Windows Installer to install application is recommended; Setup API is still used for install device drivers.[7]

Before the introduction of [Microsoft Store](/source/Microsoft_Store) (then named Windows Store), Microsoft encouraged third parties to use Windows Installer as the basis for installation frameworks, so that they synchronize correctly with other installers and keep the internal database of installed products consistent. Important features such as [rollback](/source/Rollback_(data_management)) and [versioning](/source/Version_control) depend on a consistent internal database for reliable operation. Furthermore, Windows Installer facilitates the [principle of least privilege](/source/Principle_of_least_privilege) by performing software installations by proxy for unprivileged users.

## Logical structure of packages

A package describes the installation of one or more full *products* and is universally identified by a [GUID](/source/GUID). A product is made up of *components*, grouped into *features*. Windows Installer does not handle dependencies between products.

### Products

A single, installed, working program (or set of programs) is a *product*. A product is identified by a unique GUID (the ProductCode property) providing an authoritative identity throughout the world. The GUID, in combination with the version number (ProductVersion property), allows for release management of the product's files and registry keys.

A *package* includes the package logic and other [metadata](/source/Metadata) that relates to how the package executes when running. For example, changing an [EXE file](/source/EXE_file) in the product may require the ProductCode or ProductVersion to be changed for the release management. However, merely changing or adding a launch condition (with the product remaining exactly the same as the prior version) would still require the PackageCode to change for release management of the MSI file.

### Features

A *feature* is a hierarchical group of components. A feature may contain any number of components and other sub-features. Smaller packages can consist of a single feature. More complex installers may display a "custom setup" dialog box, from which the user can select which features to install or remove.

The package author defines the product features. A [word processor](/source/Word_processor), for example, might place the program's core file into one feature, and the program's help files, optional spelling checker and stationery modules into additional features.

### Components

A *component* is the basic unit of a product. Each component is treated by Windows Installer as a unit. The installer cannot install just part of a component.[8] Components can contain program [files](/source/Computer_file), [folders](/source/Directory_(file_systems)), [COM](/source/Component_Object_Model) components, [registry](/source/Windows_registry) keys, and [shortcuts](/source/Shortcut_file). The user does not directly interact with components.

Components are identified globally by GUIDs; thus the same component can be shared among several features of the same package or multiple packages, ideally through the use of [Merge Modules](/source/Merge_Module).

### Key paths

A *key path* is a specific file, registry key, or [ODBC](/source/Open_Database_Connectivity) data source that the package author specifies as critical for a given component. Because a file is the most common type of key path, the term *key file* is commonly used. A component can contain at most one key path; if a component has no explicit key path, the component's destination folder is taken to be the key path. When an MSI-based program is launched, Windows Installer checks the existence of key paths. If there is a mismatch between the current system state and the value specified in the MSI package (e.g., a key file is missing), the related feature is re-installed. This process is known as *self-healing* or *self-repair*. No two components should use the same key path.

## Developing installer packages

Creating an installer package for a new application is not trivial. It is necessary to specify which files must be installed, to where and with what registry keys. Any non-standard operations can be done using Custom Actions, which are typically developed in [DLLs](/source/Dynamic-link_library). There are a number of commercial and freeware products to assist in creating MSI packages, including [Visual Studio](/source/Visual_Studio) (natively up to VS 2010,[9] with an extension on newer VS versions[10]), [InstallShield](/source/InstallShield), [WiX](/source/WiX), [InnoSetup](/source/InnoSetup), InstallSimple and Advanced Installer. To varying degrees, the user interface and behavior may be configured for use in less common situations such as unattended installation. Once prepared, an installer package is "compiled" by reading the instructions and files from the developer's local machine, and creating the .msi file.

Windows Installer may be slower than native code installation technologies, such as [InstallAware](/source/InstallAware),[11] due to the overhead of component registration and rollback support, which often involves generating tens of thousands of registry keys and temporary files.

The user interface (dialog boxes) presented at the start of installation can be changed or configured by the setup engineer developing a new installer. There is a limited language of buttons, text fields and labels which can be arranged in a sequence of dialogue boxes. An installer package should be capable of running without any UI, for what is called "unattended installation".

### ICE validation

Microsoft provides a set of Internal Consistency Evaluators (ICE) that can be used to detect potential problems with an MSI database.[12] The ICE rules are combined into CUB files, which are stripped-down MSI files containing custom actions that test the target MSI database's contents for validation warnings and errors. ICE validation can be performed with the Platform SDK tools Orca and msival2, or with validation tools that ship with the various authoring environments.

For example, some of the ICE rules are:

- ICE09: Validates that any component destined for the System folder is marked as being permanent.

- ICE24: Validates that the product code, product version, and product language have appropriate formats.

- ICE33: Validates that the Registry table is not used for data better suited for another table (Class, Extension, Verb, and so on).

Addressing ICE validation warnings and errors is an important step in the release process.

## Versions

Version Included with[1] Also available for 1.0 Office 2000 —N/a 1.1 Windows 2000 (RTM, SP1 & SP2) Office XP[13] Windows 95 Windows NT 4.0 Windows 98 1.2 Windows Me —N/a 2.0 Windows 2000 (SP3+) Windows XP (RTM & SP1) Windows Server 2003 (RTM) Windows 95 Windows NT 4.0 Windows 98 Windows 2000 Windows Me 3.0 Windows XP (SP2) Windows 2000 (SP3+) Windows XP Windows Server 2003 3.1 Windows XP (SP3) Windows Server 2003 (SP1+) Windows XP x64 Edition 4.0 Windows Vista (RTM & SP1) Windows Server 2008 (RTM) —N/a 4.5[14] Windows Vista (SP2) Windows Server 2008 (SP2) Windows XP (SP2+) Windows Server 2003 (SP1+) Windows XP x64 Edition Windows Vista Windows Server 2008[15] 5.0 Windows 7 or later Windows Server 2008 R2 or later —N/a

## See also

- [APPX](/source/Universal_Windows_Platform_apps#APPX) – Software package format used on Microsoft's Windows Store

- [App-V](/source/Microsoft_App-V) – Software package format used for virtualization and streaming

- [.exe](/source/.exe)

- [List of installation software](/source/List_of_installation_software)

- [Package management system](/source/Package_management_system)

- [Windows Package Manager](/source/Windows_Package_Manager)

- ZAP file – a way to perform an application installation when no MSI file exists

## References

1. ^ [***a***](#cite_ref-release_history_1-0) [***b***](#cite_ref-release_history_1-1) ["Released Versions of Windows Installer"](http://msdn.microsoft.com/en-us/library/aa371185.aspx). *[Microsoft Developer Network](/source/Microsoft_Developer_Network)*. [Microsoft](/source/Microsoft). Retrieved 3 November 2012.

1. **[^](#cite_ref-2)** ["File Extension .MSI Details"](http://filext.com/file-extension/msi). Filext.com. Retrieved 2013-04-24.

1. **[^](#cite_ref-3)** Mensching, Rob (2003-11-25). ["Inside the MSI file format"](https://web.archive.org/web/20090115213653/http://blogs.msdn.com/robmen/archive/2003/11/25/56510.aspx). *MSDN Blogs*. Archived from [the original](http://blogs.msdn.com/robmen/archive/2003/11/25/56510.aspx) on 2009-01-15. Retrieved 2017-02-15.

1. **[^](#cite_ref-4)** Mensching, Rob (2003-10-11). ["The story of Orca"](https://web.archive.org/web/20081223050952/http://blogs.msdn.com/robmen/archive/2003/10/11/56487.aspx). *MSDN Blogs*. Archived from [the original](http://blogs.msdn.com/robmen/archive/2003/10/11/56487.aspx) on 2008-12-23. Retrieved 2017-02-15.

1. **[^](#cite_ref-5)** Smith, Chris (2005-07-01). ["Windows Installer, The .NET Framework, The Bootstrapper, and You"](https://blogs.msdn.microsoft.com/chrsmith/2005/07/01/windows-installer-the-net-framework-the-bootstrapper-and-you/). *MSDN Blogs*. Retrieved 2017-02-15.

1. **[^](#cite_ref-6)** Stewart, Heath (2006-02-27). ["Identifying Windows Installer File Types"](https://devblogs.microsoft.com/setup/identifying-windows-installer-file-types/). Retrieved 2020-04-22.

1. **[^](#cite_ref-7)** drewbatgit. ["Setup API - Win32 apps"](https://learn.microsoft.com/en-us/windows/win32/setupapi/setup-api-portal). *learn.microsoft.com*. Retrieved 2026-05-27.

1. **[^](#cite_ref-8)** ["Windows Installer Components"](http://msdn.microsoft.com/en-us/library/aa372830.aspx). *MSDN Library*. [Microsoft Corporation](/source/Microsoft_Corporation). 2012-11-30. Retrieved 2013-04-08.

1. **[^](#cite_ref-vs_msi_drop_9-0)** Hodges, Buck (2011-03-17). ["Visual Studio setup projects (vdproj) will not ship with future versions of VS"](https://devblogs.microsoft.com/buckh/visual-studio-setup-projects-vdproj-will-not-ship-with-future-versions-of-vs/). *MSDN Blogs*. Retrieved 2020-02-04.

1. **[^](#cite_ref-10)** ["Visual Studio Installer Projects Extension"](https://devblogs.microsoft.com/visualstudio/visual-studio-installer-projects-extension/). *Visual Studio Blog*. 2014-04-17. Retrieved 2020-02-04.

1. **[^](#cite_ref-11)** ["Extending Windows Installer with Faster Native Code Setup Engine"](https://www.prnewswire.com/news-releases/installaware-10-first-to-market-with-hybrid-installation-technology-extending-windows-installer-with-faster-native-code-setup-engine-106966743.html) (Press release). 9 November 2010. Retrieved 22 August 2024.

1. **[^](#cite_ref-12)** [Internal Consistency Evaluators – ICEs](http://msdn.microsoft.com/en-us/library/aa369554(VS.85).aspx)

1. **[^](#cite_ref-13)** ["Applying Full-File Updates to Client Computers"](https://web.archive.org/web/20040410021903/http://www.microsoft.com/office/ork/xp/journ/Fullfile.htm). [Microsoft](/source/Microsoft). March 9, 2004. Archived from [the original](http://www.microsoft.com/office/ork/xp/journ/Fullfile.htm) on April 10, 2004.

1. **[^](#cite_ref-14)** [What's New in Windows Installer 4.5](http://msdn.microsoft.com/en-us/library/bb736325(VS.85).aspx)

1. **[^](#cite_ref-msdn.microsoft.com_15-0)** ["Released Versions of Windows Installer (Windows)"](http://msdn.microsoft.com/en-us/library/aa371185(VS.85).aspx). Msdn.microsoft.com. 2012-11-30. Retrieved 2013-04-24.

## External links

- [Official website](https://learn.microsoft.com/en-us/windows/win32/msi/windows-installer-portal)

v t e Microsoft Windows components APIs Architecture 9x NT Booting process Games Management tools App Installer Command Prompt Control Panel Device Manager DirectX Diagnostic Tool Disk Cleanup Drive Optimizer Driver Verifier Event Viewer IExpress Management Console Netsh Performance Monitor PowerShell Recovery Console Resource Monitor Settings Sysprep System Configuration System File Checker System Information System Policy Editor System Restore Task Manager Windows Backup Windows Error Reporting Windows Ink Windows Installer Windows Update Windows Insider WinRE WMI Apps 3D Viewer Calculator Calendar Camera Character Map City Art Search Clipchamp Clock Company Portal Copilot Edge Fax and Scan Feedback Hub Get Help Magnifier Mail Media Player 2022 Mesh Messaging Mobility Center Money Movies & TV Narrator News Notepad OneDrive OneNote Paint PC Manager People Phone Link Photos Quick Assist Remote Desktop Connection Snipping Tool Sound Recorder Speech Recognition Sticky Notes Store Terminal To Do Weather Whiteboard Windows App Xbox Shell Action Center Aero AutoPlay AutoRun ClearType Explorer Search IFilter Indexing Service Namespace Saved search Special folder Start menu Task View Taskbar Windows Spotlight Windows XP visual styles Services BITS CLFS Error Reporting Multimedia Class Scheduler Service Control Manager Shadow Copy Task Scheduler Wireless Zero Configuration File systems CDFS DFS exFAT FAT IFS NTFS EFS Hard link links Mount Point Reparse point TxF ReFS UDF Server Active Directory Active DRM Services DFS Replication Distributed Transaction Coordinator DNS Domains Folder redirection Group Policy Hyper-V IIS MSMQ Network Access Protection Print Services for UNIX PWS Remote Desktop Services Remote Differential Compression Remote Installation Services Roaming user profiles Server Core SharePoint System Resource Manager Windows Deployment Services Windows Media Services WSUS Architecture Boot Manager Console CSRSS Desktop Window Manager Enhanced Write Filter Graphics Device Interface Hardware Abstraction Layer I/O request packet Imaging Format Kernel Transaction Manager Library files Logical Disk Manager LSASS MinWin NTLDR Ntoskrnl.exe Object Manager Open XML Paper Specification Portable Executable DLL EXE Registry Resource Protection Security Account Manager Server Message Block Shadow Copy SMSS System Idle Process USER WHEA Winlogon WinUSB Security Security and Maintenance AppLocker BitLocker Credential Guard Data Execution Prevention Defender Family features Kernel Patch Protection Mandatory Integrity Control Protected Media Path User Account Control User Interface Privilege Isolation Windows Firewall Compatibility COMMAND.COM Windows Subsystem for Linux WoW64 API Active Scripting JScript VBScript WSH COM ActiveX ActiveX Document COM Structured storage DCOM OLE OLE Automation Transaction Server DirectX Native .NET Universal Windows Platform WinAPI Windows Mixed Reality Windows Runtime WinUSB Games Solitaire Collection Surf Discontinued Games 3D Pinball Chess Titans FreeCell Hearts Hold 'Em InkBall Purble Place Solitaire Spider Solitaire Tinker Apps ActiveMovie Address Book Anytime Upgrade Backup and Restore Cardfile CardSpace CD Player Chat Contacts Cortana Desktop Gadgets Diagnostics DriveSpace DVD Maker Easy Transfer Edge Legacy Fax Food & Drink Groove Music Health & Fitness Help and Support Center HyperTerminal Imaging Internet Explorer Journal Make Compatible Maps Media Center Meeting Space Messaging Messenger Mobile Device Center Movie Maker MSN Dial-Up NetMeeting NTBackup Outlook Express Paint 3D Pay Phone Companion Photo Gallery Photo Viewer Program Manager Skype Sports Start Steps Recorder Sysedit Syskey Tips Travel WinHelp WordPad Write Others Desktop Cleanup Wizard File Protection Games for Windows HPFS Interix Media Control Interface MS-DOS 7 Next-Generation Secure Computing Base POSIX subsystem ScanDisk Video for Windows Virtual DOS machine Windows on Windows Windows Services for UNIX Windows SideShow Windows System Assessment Tool Windows To Go WinFS Spun off to Microsoft Store DVD Player File Manager Hover! Mahjong Minesweeper Category List

v t e Windows command-line programs and shell builtins Ecosystem Interpreters COMMAND.COM Command Prompt PowerShell Recovery Console Terminals Windows Console Windows Terminal File system navigation cd (chdir) dir popd pushd tree File management attrib cacls cipher compact copy del (erase) deltree icacls mkdir (md) mklink move openfiles recover ren (rename) replace rmdir (rd) robocopy takeown xcopy Archiving expand extrac32 extract makecab pax tar Disk management chkdsk convert defrag diskcomp diskcopy diskpart diskraid diskshadow drvspace fdisk format fsutil label manage-bde MSCDEX refsutil subst scandisk sys vol vssadmin Processes at exit kill runas sc schtasks shutdown start taskkill tasklist Registry assoc ftype reg regini regsvr32 User environment chcp cmdkey date graftabl mode path set setver setx time title ver where whoami File contents comp edit edlin fc find findstr print type Scripting choice clip cscript doskey echo for forfiles goto if more pause prompt rem timeout Networking arp bitsadmin curl getmac hostname ipconfig nbtstat net netsh netstat nslookup PathPing ping rpcping route scp setspn sftp ssh ssh-add ssh-agent ssh-keygen ssh-keyscan tracert winrm winrs Maintenance and care auditpol dism dispdiag driverquery eventcreate eventtriggers gpresult gpupdate logman mofcomp msiexec ntbackup pentnt pnpunattend pnputil REAgentC relog sfc sxstrace systeminfo tpmtool tpmvscmgr tracerpt typeperf w32tm WBAdmin wecutil wevtutil winmgmt winsat wmic Boot management bcdedit bootcfg bootsect fixboot fixmbr Software development break debug exe2bin QBasic wsl Miscellaneous cls dpath help List of DOS commands Environment variables Windows Support Tools

v t e Archive formats Archiving only ar cpio shar tar LBR WAD WARC Compressing only Brotli bzip2 compress gzip Zopfli LZMA LZ4 lzip lzop SQ xz Zstandard PAQ Archiving and compressing 7z ACE ARC ARJ B1 Cabinet cfs cpt dar DGCA .dmg .egg kgb LHA lrzip LZX MPQ PEA RAR rzip sit sitx SQX UDA Xar zoo ZIP ZPAQ Software packaging and distributing apk App APPX deb HAP ipa JAR WAR Jakarta EE RAR EAR MSI MSIX Package (macOS) RPM XAP XBAP Document packaging and distributing OEB Package Format OEBPS Container Format Open Packaging Conventions Comparison List Category

Authority control databases GND

---
Adapted from the Wikipedia article [Windows Installer](https://en.wikipedia.org/wiki/Windows_Installer) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Windows_Installer?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
