Reposting this question :
Is it possible to use the same merge module twice in the same source file.

<Directory Id="TARGETDIR" Name="SourceDir">
   <Directory Id="ProgramFilesFolder">
     <Directory Id="MergeModuleSample" Name="Merge Module Sample">
       <Directory Id="INSTALLDIR" Name="Merge Mod32">
             <Directory Id="F1" Name="F1"/>
             <Directory Id="F2" Name="F2"/>
        </Directory>
      </Directory>
 </Directory>
 </Directory>

<DirectoryRef Id="F1">
      <Merge Id="merge1" Language="1033" DiskId="1" SourceFile="abc.msm">
      </Merge>
 </DirectoryRef>

 <DirectoryRef Id="F2">
      <Merge Id="merge2" Language="1033" DiskId="1" SourceFile="abc.msm">
      </Merge>
 </DirectoryRef>

 <Feature Id="ProductFeature2" Title="MergeMod322" Level="1">
      <MergeRef Id="merge1"/>
</Feature>
 <Feature Id="ProductFeature1" Title="MergeMod321" Level="1">
      <MergeRef Id="merge2"/>
 </Feature>
The above code is giving error:
Error 1 The merge module 'merge2' contains a file identifier, 'm', that is
duplicated either in another merge module or in a File/@Id attribute.  File
identifiers must be unique.  Please change one of the file identifiers to a
different value.


Code in the merge module:

 <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="Folder1">
                <Component Id="Comp1" Guid="">
                    <File Id="m" Name="file1.txt" KeyPath="yes" Vital="no"
Checksum="yes" Source="F:\file1.txt" />
                </Component>
            </Directory>
  </Directory>

Basically i want to copy the file (file1.txt) in F1 and F2 using the mereg
module.How can it be done?


Best Regards.

Ricky
------------------------------------------------------------------------------
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