Dependencies vs. Merge Modules

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm trying to gain a better conceptual understanding of when I might
use merge modules. So far I can't come up with a reason to use them in
most of my projects, and I want to make sure I'm not missing something.

Whenever I create a Setup Project for an application I'm working on,
Visual Studio automatically detects that application's dependencies.
These dependencies always correspond to the DLLs I have referenced in
the application project's References folder.

I would expect merge modules to be a vehicle by which an application's
dependencies (say, a collection of DLLs) are distributed. If I'm
working on two applications that reference the same class library, then
a merge module for that library should be created and included with
each application's setup project. It seems like this (merge module
creation) should happen for -every- referenced DLL or project that
stands to be shared between applications. Most class libraries are
developed in the spirit of sharing, so it seems natural to me that all
referenced DLLs (or projects) should have their own merge module.

But whenever I create a Setup Project for any application, all the
application's dependencies are automatically detected and wrapped up
into the .msi as DLLs. Merge modules never come into play
automatically, which I guess is what I would expect. Common knowledge
in the community seems to indictate that all those auto-dependencies
should be manually excluded, then merge modules included into the setup
project separately. This seems like a lot of work when the alternative
is to just let the IDE store my dependencies separately. What do I
really gain by using merge modules?

--
Jeff S.

.



Relevant Pages

  • Setup project dependency problem
    ... My project references a number of DLLs. ... reference other DLLs that aren't being detected by the Setup Project. ... dependencies and include them in the deployment project. ...
    (microsoft.public.vsnet.general)
  • Re: Adding dependencies to a Setup Project.
    ... > When I add an exe developed in VB to a setup Project it adds dlls to the ... If not is there a way to add dependencies manually? ... > I wrote an OCX with one simple method. ...
    (microsoft.public.vstudio.development)
  • Re: Subproject dependencies not included in build?
    ... I have experienced this problem before, so I ended up adding the same references to other project so that everything gets deployed. ... the dlls are copied to it's build folder. ... try an xcopy deployment, the application will not run until I manually copy ... target project to include all of the dependencies from it's referenced ...
    (microsoft.public.vstudio.development)
  • Re: Exception on deployment of application
    ... references and come up in the dependencies section of the setup project. ... >> I have written a VB.NET application and created a setup project for it. ... >> Simon Jefferies ...
    (microsoft.public.dotnet.languages.vb)
  • Adding dependencies to a Setup Project.
    ... When I add an exe developed in VB to a setup Project it adds dlls to the ... When I add an OCX created in C++ no dependencies are ... OCX and add them? ...
    (microsoft.public.vstudio.development)