.msi 和 setup.exe 文件之间的具体区别是什么? [英] What are the specific differences between .msi and setup.exe file?

查看:19
本文介绍了.msi 和 setup.exe 文件之间的具体区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了很多,但都是猜测的答案.帮我找到确切的答案.

I searched a lot, but all are guessed answers. Help me to find the exact answer.

推荐答案

MSI 是 Windows Installer 数据库.Windows Installer(与 Windows 一起安装的服务)使用它在您的系统上安装软件(即复制文件、设置注册表值等).

An MSI is a Windows Installer database. Windows Installer (a service installed with Windows) uses this to install software on your system (i.e. copy files, set registry values, etc...).

setup.exe 可以是引导程序或非 msi 安装程序.非 msi 安装程序将从自身提取安装资源并直接管理它们的安装.引导程序将包含 MSI 而不是单个文件.在这种情况下,setup.exe 将调用 Windows Installer 来安装 MSI.

A setup.exe may either be a bootstrapper or a non-msi installer. A non-msi installer will extract the installation resources from itself and manage their installation directly. A bootstrapper will contain an MSI instead of individual files. In this case, the setup.exe will call Windows Installer to install the MSI.

您可能想要使用 setup.exe 的一些原因:

Some reasons you might want to use a setup.exe:

  • Windows Installer 一次只允许安装一个 MSI.这意味着很难让 MSI 安装其他 MSI(例如 .NET 框架或 C++ 运行时等依赖项).由于 setup.exe 不是 MSI,因此可用于依次安装多个 MSI.
  • 您可能希望更精确地控制安装的管理方式.MSI 对如何管理安装(包括安装、升级和卸载)有非常具体的规则.setup.exe 可以完全控制软件配置过程.只有当您确实需要额外的控制时才应该这样做,因为它需要大量的工作,而且很难做到正确.
  • Windows Installer only allows one MSI to be installing at a time. This means that it is difficult to have an MSI install other MSIs (e.g. dependencies like the .NET framework or C++ runtime). Since a setup.exe is not an MSI, it can be used to install several MSIs in sequence.
  • You might want more precise control over how the installation is managed. An MSI has very specific rules about how it manages the installations, including installing, upgrading, and uninstalling. A setup.exe gives complete control over the software configuration process. This should only be done if you really need the extra control since it is a lot of work, and it can be tricky to get it right.

这篇关于.msi 和 setup.exe 文件之间的具体区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆