什么是合并模块以及它们如何使用? [英] What are merge modules and how are they used?

查看:28
本文介绍了什么是合并模块以及它们如何使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是合并模块以及它们如何使用?我听说它们是 .msm 文件,但我以前从未见过(我只见过 .msi).

What are merge modules and how are they used? I heard that they are .msm files, but I've never seen that before (I've only seen .msi).

创建 msi 文件时是否使用它们?它们是否与商业软件一起分发(大概与 msi 文件一起分发?)

Are they used when you create msi files? Are they distributed with commercial software (presumably together with msi files?)

它们有什么意义?他们是否隐藏了需要与开发的软件一起安装(因此一起分发)的常见第三方或 Microsoft 组件的安装程序的实现?

What is the point of them? Are they to hide the implementation of the installer for common third party or Microsoft components that need to be installed together with developed software (and therefore distributed together)?

谢谢!

推荐答案

MSI = Windows Installer Package

MSI = Windows Installer Package

MSM = 合并模块

以下是一位设置大师对我的解释:MSI 之于 EXE,就像 MSM 之于 LIB".

Here's how one setup guru explained it to me: "MSI is to EXE as MSM is to LIB".

也就是说,MSI 包是一个独立的安装程序包.您构建 MSI 包以分发给客户或让他们直接下载和运行.MSM 是无法直接安装的安装包 - 它必须包含在 MSI 中.例如,Visual C 运行时(msvcrt90.dll 和朋友)作为 MSM 合并模块分发.如果您的应用依赖于 CRT,您可能会在您的 MSI 中引用 Microsoft_VC100_CRT_x86.msm.

That is, an MSI package is a standalone installer package. You build MSI packages to distribute to customers or for them to download and run directly. Where an MSM is a setup package that can't be installed directly - it has to be included within an MSI. For example, the Visual C Runtime (msvcrt90.dll and friends) are distributed as an MSM merge modules. If your app depends on the CRT, you might reference Microsoft_VC100_CRT_x86.msm into your MSI.

有多种方法可以构建 MSI 安装程序包和 MSM 合并模块.编写安装程序包的一种方法是使用 WIX 工具集.下面的一些链接可能会引起您的兴趣:

There are different ways to build both MSI installer packages and MSM merge modules. One such way to author setup packages is with the WIX toolset. Some links that may be of interest below:

http://wix.sourceforge.net/manual-wix2/overview.htm

http://wix.sourceforge.net/manual-wix2/authoring_merge_modules.htm

这篇关于什么是合并模块以及它们如何使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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