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

查看:113
本文介绍了.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天全站免登陆