Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Merge Module for msvcr71.dll

InstallerExpert created the topic: Merge Module for msvcr71.dll
I am trying to use a merge module for msvcr71.dll since its strongly recommended to use merge models for re-distributing c runtime libraries.
But i want to copy this msvcr71.dll to 2 different folders on installation.
But using the same merge module reference twice would cause the same file to be included twice in the final msi, which causes conflict in the File table , since file id is the primary key. (Since same file would be included twice
)
Here is a sample of the code:

< Directory Id="TARGETDIR" Name="SourceDir">

< Merge Id="msvcr71dll" Language="1033" DiskId="1" SourceFile="My_MSM.msm">

< DirectoryRef Id="Folder2">

< Merge Id="msvcr71dllF2" Language="1033" DiskId="1" SourceFile="My_MSM.msm">

< Feature Id="ProductFeature1" Title="MergeMod321" Level="1">

< MergeRef Id="msvcr71dll"/>

< Feature Id="ProductFeature2" Title="MergeMod322" Level="1">

< MergeRef Id="msvcr71dllodbc"/>


Above code gives obvious error that File/Id is duplicated(which is the file id in the msm.

Now i have to use the merge module and i cannot even modify the merge module in anyway and need to copy the file in both the folders.

Is there a way to do so?

I saw the CopyFile element but that can be used only under a Component or File Element.

InstallerGeek replied the topic: Re: Merge Module for msvcr71.dll
Doesn’t the merge module install the file to the Windows system folder? If that’s the case then you shouldn’t need to install the file anywhere else.

InstallerExpert replied the topic: Re: Merge Module for msvcr71.dll





That is all you should Ricky need assuming you’re using the VC++ 7 merge modules provided with Visual Studio 2003. Your convoluted directory structure is totally unnecessary as the merge module is going to put the files into the WinSXS area regardless of where you would like it to go.
You can’t install those merge modules in an arbitrary directory even if you want to.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

4 Open Source Alternatives to Slack for Team Chat: IRC, Let’s Chat, Mattermost, and Rocket.Chat

If you want Slack-like team communication with more control, these four open source options are a practical starting point. This guide compares their strengths, trade-offs, and how to run a short technical pilot.

Read More

jstack Utility Deep Dive: JVM Thread Dumps, Deadlocks, and Mixed Stacks

This guide explains how to use jstack to diagnose JVM hangs and deadlocks, including forced dumps, core-file analysis, and mixed Java/native stack traces. It also clarifies where jcmd fits in modern JDK 8+ troubleshooting guidance.

Read More

Open Source Scanning Software: Evaluate Legacy Tools and Build a Modern SCA Workflow

The original post listed several tool names but no implementation guidance. This revised guide explains what open source scanning means in DevSecOps, how to interpret those legacy names, and how to implement a practical CI scanning workflow.

Read More

Lyca Mobile USSD Shortcuts: Check Balance and Data Balance Quickly

Use these Lyca Mobile USSD shortcuts to check your prepaid balance and remaining data in seconds. This updated reference includes quick steps, a workflow diagram, and troubleshooting guidance.

Read More

Single Sign-On Implementations: Practical Comparison and Evaluation Guide

This guide expands a short 2015 link list of SSO tools into a practical DevOps reference. You will learn how SSO flows work, how to compare implementations, and how to validate integrations with real commands.

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x