如何在单个MSI中部署多个项目? [英] How to deploy multiple projects in a single MSI?

查看:91
本文介绍了如何在单个MSI中部署多个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案中有3个项目要部署.有没有一种很好的,快速的方法来使用Visual Studio的安装项目使用一个MSI部署所有三个应用程序,并让用户确定他要在安装过程中安装哪些应用程序?

I have 3 projects in my solution that I want to deploy. Is there a nice and quick way of using Visual Studio's setup projects to deploy all three apps using one MSI and letting the user decide which apps he wants to install during the install process?

我有3个独立应用程序的安装项目,也有一个包含其他三个项目输出的总体安装项目.我是在正确的轨道上还是有更好的方法?

I have setup projects for the 3 individual apps, I also have an overarching setup project that has the output of those other three projects. Am I on the right track or is there a better way?

推荐答案

我认为您可能需要合并模块.根据MSDN:

I think you probably want merge modules. Accrding to MSDN:

合并模块是Microsoft Windows Installer的标准功能,它将组件与所有相关文件,资源,注册表项和安装逻辑打包在一起.您可以使用合并模块来安装多个应用程序共享的组件.您不能直接安装合并模块.您必须将它们合并到部署项目中.

A merge module is a standard feature of Microsoft Windows Installer that packages components together with any related files, resources, registry entries, and setup logic. You can use merge modules to install components that multiple applications share. You cannot install merge modules directly. You must merge them into deployment projects.

http://support.microsoft.com/kb/827025

在您的情况下,每个应用程序都是一个合并模块,您需要提供一些UI来选择要安装的应用程序.您可以修改默认页面模板之一来完成此操作.

In your case, each application would be a merge module and you would need to provide some UI to select which applications you would like to install. You could modify one of the default page templates to do that.

这篇关于如何在单个MSI中部署多个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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