Look at WiX's CopyFile element. In my example, I assume you have Blah, Txts,
and Examples directories in your Directory Table...

<File Source='a.txt'>
<CopyFile Id='a-to-blah' DestinationDirectory='BlahDir'/>
<CopyFile Id='a-to-txts' DestinationDirectory='TxtsDir'/>
<CopyFile Id='a-to-examples' DestinationDirectory='ExamplesDir'/>
</File>
...
<File Source='b.txt'>
<CopyFile Id='b-to-blah' DestinationDirectory='BlahDir'/>
<CopyFile Id='b-to-txts' DestinationDirectory='TxtsDir'/>
<CopyFile Id='b-to-examples' DestinationDirectory='ExamplesDir'/>
</File>
...
<File Source='c.txt'>
<CopyFile Id='c-to-blah' DestinationDirectory='BlahDir'/>
<CopyFile Id='c-to-txts' DestinationDirectory='TxtsDir'/>
<CopyFile Id='c-to-examples' DestinationDirectory='ExamplesDir'/>
</File>

You will want to think about removing the copies as well. Use the RemoveFile
element for that.

-----Original Message-----
From: Keith Nicholas [mailto:keith.nicho...@gmail.com] 
Sent: Monday, October 12, 2009 7:49 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How do you copy a set of files to multiple places using
Wix?

I'm trying to make an install that puts a copy of the same files in
multiple places...

is there a simple way to do this?

eg. if I wanted to put a.txt b.txt c.txt into all of the following
directories :-

.\Blah\
.\Txts\
.\Examples\


Regards,

Keith

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to