Another option is to stage your files as they should exist at install time and 
harvest the resulting directory structure. So, instead of harvesting MyFolderA 
and MyFolderB you would copy the files from those folders into MyFolderC and 
harvest only MyFolderC. That will move the decision between choosing 
MyFolderA\file1.txt and MyFolderB\file2.txt up to "staging-time". If they 
really are identical and always will be identical then you can simply have one 
overwrite the other. If they could potentially be different at some point in 
time then you want to change your target directory structure or change 
filenames.

Edwin G. Castro
Software Developer - Staff
Electronic Banking Services
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail

-----Original Message-----
From: Tobias S [mailto:tobias.s1...@gmail.com] 
Sent: Friday, September 03, 2010 2:17 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Generating fragments using heat

Try to manually modify one of the component codes after harvesting.
It's not Windows Installer best practice to include the same file
(component) several times in the installation.

Also comp. 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Install-the-same-file-into-multiple-directories-td693128.html


2010/9/3  <abdoulaye.souleyma...@rohde-schwarz.com>:
>
> Hello all,
> i have the following problem:
>
> I try to harvest the two directories below using heat:
>
> C:\MyfolderA
> C:\MyfolderB
>
> MyFolderA contains: file1.txt, file2.txt MyFolderB contains file1.txt, 
> file3.txt
>
> file1.txt in MyFolderA and file1.txt in MyFolderB are identical.
>
> Later the collected files should be installed in MyFolderC.
>
> I harvested the dierctories above with the follwing commands.
>
> heat dir C:\MyfolderA -cg AFiles -ag -scom -sreg -sfrag -srd -dr 
> MyFolderC -out AFilesFragment.wxs heat dir C:\MyfolderB -cg BFiles -ag 
> -scom -sreg -sfrag -srd -dr MyFolderC -out BFilesFragment.wxs
>
> After harvested the directories i included the files 
> AFilesFragment.wxs and BFilesFragment.wxs into my project installer.
>
> The componentGroup created hier are now referenced in the feature part 
> of my product
>
> Try to build the project produced the folloqing errors:
> Duplicate symbol 'Component:cmp07DE19D84BED137D10D525F675F6F293' found 
> in file BFilesFragment.wxs.
>
> It is obvious that this error leads to the common file file1.txt .
>
> Can anyone help me solve this problem?
>
>
>
> MfG
> Abdoulaye Souleymanou
> Stangl Software  Integration
>
>
> ----------------------------------------------------------------------
> -------- This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to