Windows Installer

Windows Installer是在Windows 2000时提出,作为微软操作系统中的安装程序开发标准的操作系统服务。它可以支持安装程序所需要的许多功能,并且可以支持交易式安装(Committable Installation),当安装程序发现错误或问题时,可以将安装程序中所做的任何修改(包含复制文件、修改配置等)全部回溯为未变更的状态。

Windows Installer
Windows Installer 在 Windows 7 上的截图
原作者微软
当前版本
编辑维基数据链接
操作系统Windows
类型Installer
许可协议专有
网站docs.microsoft.com/en-us/windows/win32/msi/windows-installer-portal 编辑维基数据
Windows Installer Package[2]
扩展名
.msi, .msp
互联网媒体类型
application/x-ole-storage, text/mspg-legacyinfo
开发者Microsoft
扩展自Cabinet
免费格式?

目前Windows Installer最新版本为5.0版。

组成 编辑

目前主要有两种Windows Installer,分别是 .msi 和 .msp。 .msi 全称为 Microsoft Installer,而 .msp的全称则为 Microsoft Package。 Windows Installer的安装程序由Windows Installer Service、Installer Database、Installation Bootstrapper与需要安装的文件所组成。

  • Windows Installer Service:与操作系统一起安装,由Windows Installer安装程序的Installation Bootstrapper启动,负责加载Installer Database,以及Windows Installer安装程序执行期间的交易式安装功能,以确保安装程序对系统的修改,不是成功就是失败(不做任何变更)。
  • Installer Database:由安装程序工具所制作,里面含有安装程序的指令,流程(向导画面所需的资料),资料,配置设置等,为 Windows Installer 的安装数据源,有时候文件也会被压缩在Installer Database中。
  • Installation Bootstrapper:启动Windows Installer以执行安装程序的起始用程序,通常以setup.exe命名。

可转散布组件 编辑

利用Windows Installer开发安装程序的软件厂商,可以在软件包装中附上Windows Installer 的可转散布包(Redistribute Package),以确保用户的电脑可以更新Windows Installer的模块版本,让安装程序得以顺利执行。

Windows Installer 目前是属于Platform SDK的一部分。

版本历史 编辑

版本 用于[3] 也可用于
1.0 Office 2000 -
1.1 Windows 2000 RTM, SP1, SP2 Windows 95/98
Windows NT 4.0 SP6
1.2 Windows Me -
2.0 Windows XP RTM, SP1
Windows 2000 SP3
Windows Server 2003 RTM
Windows 95/98/Me
Windows NT 4.0 SP6
Windows 2000 RTM, SP1, SP2
3.0 Windows XP SP2 Windows 2000 SP3/SP4
Windows XP RTM/SP1
Windows Server 2003 RTM
3.1 Windows Server 2003 SP1
Windows XP Professional x64 Edition
Windows XP SP3
Windows 2000 SP3, SP4
Windows XP RTM, SP1, SP2
Windows Server 2003 RTM
4.0 Windows Vista RTM, SP1
Windows Server 2008 RTM
-
4.5[4] Windows Vista SP2
Windows Server 2008 SP2
Windows XP SP2, SP3
Windows Server 2003 SP1, SP2
Windows Vista RTM, SP1
Windows Server 2008[5]
5.0 Windows 7 RTM
Windows Server 2008 R2 RTM
Windows 8 RTM

Winodws 10

Windows Installer 5.0会与Windows Server 2008 R2及Windows 7一起发布[5]

要知道自己的电脑使用哪个版本的Windows Installer,输入msiexec /? 到Windows 运行对话框或命令提示符中。


工具 编辑

工具名称 出版商 英文原文概述 翻译概述 授权 网站
Install Time Savage Fly Corp. A full featured commercial installer and packaging tool for Windows Installe installations. Can create, validate and edit .msi packages. 用于 Windows Installer 安装的全功能商业安装程序和打包工具。 可以创建、验证和编辑 .msi 包 Shareware www.savagefly.com
Advanced Installer Caphyon Ltd. An installer that features one freeware edition and four commercial editions. Can create, validate and edit .msi packages. 具有一个免费软件版本和四个商业版本的安装程序。 可以创建、验证和编辑 .msi 包 Freemium www.advancedinstaller.com
InstallAware InstallAware Software

commercial setup

A commercial setup creator that comes in four commercial editions 有四个商业版本

此翻译不完整,详情请查看英文原文

Shareware www.installaware.com
InstallShield Flexera Software InstallShield is a software tool for creating installers or software packages primarily used for installing software for Microsoft Windows desktop and server platforms. InstallShield 是一种用于创建安装程序或软件包的软件工具,主要用于为 Microsoft Windows 桌面和服务器平台安装软件。 Shareware www.installshield.com
InstEdit Google Code InstEd is a free .msi editor. Paid version with more features available also. InstEd 是一个免费的 .msi 编辑器。 付费版本亦提供更多的功能。 Freeware www.instedit.com
IsWiX CodePlex Industrial Strength Windows Installer XML (IsWiX) is a document editor based on the Fireworks Application Framework. IsWiX enables non-setup developers to collaborate with setup developers using WiX projects. Industrial Strength Windows Installer XML (IsWiX) 是基于 Fireworks 应用程序框架的文本编辑器。 IsWiX 使非设置开发人员(non-setup developers)能够与使用 WiX 项目的设置开发人员(setup developers)协作。 Microsoft Public License iswix.codeplex.com
Microsoft Visual Studio Microsoft Microsoft Visual Studio is capable of building Windows Installer Deployment projects that can create installer packages.[6] Microsoft Visual Studio 能够构建可以创建安装程序包的 Windows 安装程序部署项目。 Shareware www.microsoft.com/vstudio
MSI Studio ScriptLogic An .msi editor aim towards system administrators who wish to repackage installation packages or optimize the installation for their own environment/needs. .msi 编辑器面向希望重新打包安装包或针对自己的环境/需要优化安装的系统管理员。 Shareware www.scriptlogic.com
WiX CodePlex WiX (Windows Installer XML) is a free and open-source set of tools that helps build a Windows Installer packages from an XML document. It can be either used from command-line or integrated into Microsoft Visual Studio. SharpDevelop, a free and open-source alternative to Visual Studio has adopted WiX.[7] WiX(Windows Installer XML)是一组免费和开源的工具,可帮助从 XML 文档构建 Windows Installer 程序包。 它既可以从命令行使用,也可以集成到 Microsoft Visual Studio 中。 SharpDevelop 是 Visual Studio 的免费开源替代品,已采用 WiX。 Common Public License wix.codeplex.com
7-Zip SourceForge 7-Zip is an open source file archiver utility, and can extract the contents of MSI files.[8] 7-Zip 是一个开源文件归档实用程序,可以提取 MSI 文件的内容。 GNU Lesser General Public License www.7-zip.org

参考文献 编辑

  1. ^ Released Versions of Windows Installer. [2022年7月11日]. 
  2. ^ File Extension .MSI Details. Filext.com. [2013-04-24]. (原始内容存档于2021-08-11). 
  3. ^ Released Versions of Windows Installer. [2009-04-27]. (原始内容存档于2017-02-28). 
  4. ^ What's New in Windows Installer 4.5. [2009-04-27]. (原始内容存档于2016-03-05). 
  5. ^ 5.0 5.1 存档副本. [2009-04-27]. (原始内容存档于2017-02-28). 
  6. ^ Windows Installer Deployment. Microsoft Developers Network (MSDN) Library. Microsoft Corporation. August 2008 [1 October 2009]. (原始内容存档于2016-03-10). Windows Installer deployment enables you to create installer packages to be distributed to users; the user runs the setup file and steps through a wizard to install the application. 
  7. ^ SharpDevelop Features. IC#Code. [31 March 2012]. (原始内容存档于2017-12-21). 
  8. ^ Windows Installer Tools & Tips. InstallSite Stefan Krueger. [19 November 2009]. (原始内容存档于2021-11-24).