简体   繁体   English

如何从.msi安装程序升级到新版本的.msm?

[英]How to upgrade from a .msi installer to a .msm for new version?

Say I have a component which is made up of a bunch of DLLs. 说我有一个由一堆DLL组成的组件。 And the component was released using a .msi installer for several versions. 并使用.msi安装程序发布了该组件的多个版本。

Now, we need it to be a .msm so that it can be included in other msi installers. 现在,我们需要将其作为.msm,以便可以将其包含在其他msi安装程序中。 So we need to build a merge module that can upgrade from .msi installations. 因此,我们需要构建一个可以从.msi安装升级的合并模块。

How to do that? 怎么做? Or it cannot be done? 还是不能做到? We are using Wix. 我们正在使用Wix。

As long as you maintain the same GUIDs and set the components to be shared then it should be possible to move the components into a MSM instead. 只要您维护相同的GUID并设置要共享的组件,那么应该可以将这些组件移到MSM中。 The MSM will just cause the components to be included into the installers it is included in the same as if the components had been added to the installer so it's more like just copying the components into several installers. MSM只会使组件包含在安装程序中,就像将组件添加到安装程序中一样,它也包含在安装程序中,因此更像是将组件复制到多个安装程序中。

Granted I haven't tried out any of this, only had to the reverse of fixing a mistake when multiple installers shared GUIDs for components when i did not want that behavior. 当然,我还没有尝试过任何一种方法,只需要纠正一个错误,即当我不希望这种行为时,多个安装程序共享组件的GUID时,就会犯一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM