How to deploy multiple projects in a single MSI?

前端 未结 4 1778
孤城傲影
孤城傲影 2021-01-14 05:18

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 let

相关标签:
4条回答
  • 2021-01-14 05:59

    I also have a similar requirement, however i used merge modules but cant seem to find a way of selecting which specific msm to install and which not to. As i understand there is a no condition property which can be set on msm's while integrating them with msi's. Please let me know if there is some alternate way of doin so..

    Thanks, Apn

    0 讨论(0)
  • 2021-01-14 06:00

    If using WiX (which I suggest doing) then you break each project down into its components, each project would be represented as a Feature in WiX/MSI which you can do conditional installs on. The standard tree dialog on installers for selecting features is based on this and the WiX examples have a ready made UI that uses it.

    As for merge modules the lead developer of WiX was involved in the early creation of the Merge Module specs and he reccomends using .wixlibs now. See Here

    WiX v3 Docs

    0 讨论(0)
  • 2021-01-14 06:04

    You can use Wix as i've posted here -->

    VS 2005 Setup Projects: Deploy Many Projects With One MSI

    0 讨论(0)
  • I think you probably want merge modules. Accrding to MSDN:

    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

    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.

    0 讨论(0)
提交回复
热议问题