Are you sure about that WinSxS location? I believe the 7.1 merge modules will 
install the Dlls in the user's application folder.  I don't think they went 
WinSxS until Visual Studio 2005.

Phil Wilson 

-----Original Message-----
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: Thursday, January 14, 2010 3:47 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Merge Module for msvcr71.dll

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Merge
Id="msvcr71dll"Language="1033"DiskId="1"SourceFile="My_MSM.msm" />
    </Directory>
    <FeatureId="ProductFeature1"Title="MergeMod321"Level="1">
      <MergeRefId="msvcr71dll"/>
    </Feature>

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.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Rob Hamflett [mailto:r...@snsys.com] 
Sent: 14 January 2010 09:29
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] 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.

Rob

On 14/01/2010 09:16, ricky sundrani wrote:
> 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">
>
> <Directory Id="ProgramFilesFolder">
>
> <Directory Id="Merg" Name="Merg">
>
> <Directory Id="INSTALLDIR" Name="Merge Mod32">
>
> <Directory Id="Folder1" Name="Folder1"/>
>
> <Directory Id="Folder2" Name="Folder2"/>
>
> </Directory>
>
> </Directory>
>
> </Directory>
>
> </Directory>
>
>   <DirectoryRef Id="Folder1">
>
> <
> Merge Id="msvcr71dll" Language="1033" DiskId="1" 
> SourceFile="My_MSM.msm">
>
> </
> Merge>
>
> </
> DirectoryRef>
>
> <
> DirectoryRef Id="Folder2">
>
> <
> Merge Id="msvcr71dllF2" Language="1033" DiskId="1" 
> SourceFile="My_MSM.msm">
>
> </
> Merge>
>
> </DirectoryRef>
>
> <
> Feature Id="ProductFeature1" Title="MergeMod321" Level="1">
>
> <
> MergeRef Id="msvcr71dll"/>
>
> </
> Feature>
>
> <
> Feature Id="ProductFeature2" Title="MergeMod322" Level="1">
>
> <
> MergeRef Id="msvcr71dllodbc"/>
>
> </
> Feature/>
> 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.
>
>


------------------------------------------------------------------------
------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference attendees to learn about information security's most
important issues through interactions with peers, luminaries and
emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to