Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Windows Installer
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Software}} {{About|the [[Microsoft Windows]] component|the installation of the operating system itself|Windows Setup}} {{multiple issues| {{more citations needed|date=May 2020}} {{primary sources|date=August 2024}} }} {{Infobox software | name = Windows Installer | screenshot = Windows Installer.png | caption = Help screen of Windows Installer 5.0 running on [[Windows 11]] | developer = [[Microsoft]] | released = {{Start date and age|1999|08|31|df=yes}} | discontinued = yes | latest release version = 5.0 | latest release date = {{Start date and age|2009|07|22|df=yes}}<ref name="release_history">{{cite web |url=http://msdn.microsoft.com/en-us/library/aa371185.aspx |title=Released Versions of Windows Installer |work=[[Microsoft Developer Network]] |publisher=[[Microsoft]] |access-date=3 November 2012}}</ref> | operating system = [[Microsoft Windows]] | platform = [[IA-32]], [[x86-64]], [[ARM32]], [[ARM64]], [[Itanium]] | included with = [[Windows 2000]] and later | genre = [[Installer]] | license = [[Freeware]] }} {{Infobox file format | name = Windows Installer Package<ref>{{cite web|url=http://filext.com/file-extension/msi |title=File Extension .MSI Details |publisher=Filext.com |access-date=2013-04-24}}</ref> | logo = | icon = | iconcaption = | screenshot = | caption = | extension = .msi, .msp | mime = application/x-ole-storage | type code = | uniform type = | conforms to = | magic = | owner = [[Microsoft]] | genre = [[Archive (computing)|Archive]] | container for = Installation information and an optional [[Cabinet (file format)|.cab]] file payload | contained by = | extended from = [[COM Structured Storage]] | extended to = | standard = | open = No | url = }} '''Windows Installer''' (<code>msiexec.exe</code>, previously known as '''Microsoft Installer''',<ref>{{cite web| url=http://blogs.msdn.com/robmen/archive/2003/11/25/56510.aspx|title=Inside the MSI file format|date=2003-11-25|first=Rob| last=Mensching|website=MSDN Blogs|archive-url=https://web.archive.org/web/20090115213653/http://blogs.msdn.com/robmen/archive/2003/11/25/56510.aspx | archive-date=2009-01-15 | access-date=2017-02-15}}</ref> [[List of Microsoft codenames|codename]] '''Darwin''')<ref>{{cite web|url=http://blogs.msdn.com/robmen/archive/2003/10/11/56487.aspx|title=The story of Orca|date=2003-10-11|first=Rob|last=Mensching|website=MSDN Blogs|archive-url=https://web.archive.org/web/20081223050952/http://blogs.msdn.com/robmen/archive/2003/10/11/56487.aspx | archive-date=2008-12-23|access-date=2017-02-15}}</ref><ref>{{cite web|url=https://blogs.msdn.microsoft.com/chrsmith/2005/07/01/windows-installer-the-net-framework-the-bootstrapper-and-you/|title=Windows Installer, The .NET Framework, The Bootstrapper, and You|date=2005-07-01| first=Chris|last=Smith|website=MSDN Blogs|access-date=2017-02-15}}</ref> is a [[software component]] and [[application programming interface]] (API) of [[Microsoft Windows]] used for the [[Installation (computer programs)|installation]], maintenance, and removal of software. The installation information, and optionally the files themselves, are packaged in [[Package (package management system)|''installation packages'']], loosely [[relational database]]s structured as [[COM Structured Storage]]s and commonly known as "MSI files", from their default [[filename extension]]s. The packages with the file extensions <code>mst</code> contain Windows Installer "Transformation Scripts", those with the <code>msm</code> extensions contain "Merge Modules" and the file extension <code>pcp</code> is used for "Patch Creation Properties".<ref>{{cite web|url=https://devblogs.microsoft.com/setup/identifying-windows-installer-file-types/|title=Identifying Windows Installer File Types|first=Heath|last=Stewart|date=2006-02-27|access-date=2020-04-22}}</ref> Windows Installer contains significant changes from its predecessor, Setup API. New features include a [[GUI]] [[Software framework|framework]] and automatic generation of the [[uninstallation]] sequence. Windows Installer is positioned as an alternative to stand-alone executable installer frameworks such as older versions of [[InstallShield]] and [[Nullsoft Scriptable Install System|NSIS]]. Before the introduction of [[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 (data management)|rollback]] and [[version control|versioning]] depend on a consistent internal database for reliable operation. Furthermore, Windows Installer facilitates the [[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]]. 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]] that relates to how the package executes when running. For example, changing an [[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 previous version) would still require the PackageCode to change for release management of the MSI file itself. ===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]], 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.<ref>{{cite web|url=http://msdn.microsoft.com/en-us/library/aa372830.aspx | title = Windows Installer Components | publisher = [[Microsoft Corporation]]|work= MSDN Library|access-date=2013-04-08|date=2012-11-30}}</ref> Components can contain program [[Computer file|files]], [[directory (file systems)|folders]], [[Component Object Model|COM]] components, [[Windows registry|registry]] keys, and [[shortcut file|shortcuts]]. 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 Module]]s. ===Key paths=== A ''key path'' is a specific file, registry key, or [[Open Database Connectivity|ODBC]] 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 [[dynamic-link library|DLLs]]. There are a number of commercial and freeware products to assist in creating MSI packages, including [[Visual Studio]] (natively up to VS 2010,<ref name="vs_msi_drop">{{cite web|url=https://devblogs.microsoft.com/buckh/visual-studio-setup-projects-vdproj-will-not-ship-with-future-versions-of-vs/|title=Visual Studio setup projects (vdproj) will not ship with future versions of VS|author=Hodges|first=Buck|date=2011-03-17|work=MSDN Blogs|access-date=2020-02-04}}</ref> with an extension on newer VS versions<ref>{{Cite web|url=https://devblogs.microsoft.com/visualstudio/visual-studio-installer-projects-extension/|title=Visual Studio Installer Projects Extension|date=2014-04-17|website=Visual Studio Blog|language=en-US|access-date=2020-02-04}}</ref>), [[InstallShield]], [[WiX]], [[InnoSetup]] and InstallSimple. 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]],<ref>{{cite press release|url=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|title=Extending Windows Installer with Faster Native Code Setup Engine|date=9 November 2010|access-date=22 August 2024}}</ref> 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.<ref>[http://msdn.microsoft.com/en-us/library/aa369554(VS.85).aspx Internal Consistency Evaluators β ICEs]</ref> 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. ==See also== *[[Universal Windows Platform apps#APPX|APPX]] β Software package format used on Microsoft's Windows Store *[[Microsoft App-V|App-V]] β Software package format used for virtualization and streaming *[[.exe]] *[[List of installation software]] *[[Package management system]] *[[Windows Package Manager]] *ZAP file β a way to perform an application installation when no MSI file exists ==References== {{Reflist|30em}} ==External links== * {{official website}} {{Windows Components}} {{Windows commands}} {{Archive formats}} {{Authority control}} [[Category:Installation software]] [[Category:Microsoft application programming interfaces]] [[Category:Windows administration]] [[Category:Windows components]] [[Category:Windows-only software]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:About
(
edit
)
Template:Archive formats
(
edit
)
Template:Authority control
(
edit
)
Template:Cite press release
(
edit
)
Template:Cite web
(
edit
)
Template:Infobox file format
(
edit
)
Template:Infobox software
(
edit
)
Template:Multiple issues
(
edit
)
Template:Official website
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Windows Components
(
edit
)
Template:Windows commands
(
edit
)