From: Rob M. <ro...@us...> - 2005-03-01 15:05:55
|
AFAIK, those tables do not support recursive copy (I know that RemoveFiles does not). Instead, I think you'll need to create a CustomAction that adds rows to the CopyFiles/MoveFiles table to do what you want. Then the Windows Installer will handle all the rollback/file in-use/failure cases for you. Far easier than trying to write a recursive copy mechanism yourself. -----Original Message----- From: wix...@li... [mailto:wix...@li...] On Behalf Of Robert Hamflett Sent: Tuesday, March 01, 2005 2:52 AM To: Wix Users Subject: Re: [WiX-users] Using CopyFile to copy directory tree recursively Unless your directories have a '.' in their name then the mask wouldn't match them would it? Try '*' as the Sourcename, as that should match everything. Rob Leon Zandman wrote: >Hi, > >Is it possible to use the CopyFile tag to copy a complete directory tree >recursively? I currently use a custom action for this, but I'm >experimenting doing this using the following statement in my WXS file: > ><CopyFile Id="CopyFiles" DestinationProperty="INSTALLDIR" > SourceName="*.*" SourceProperty="LODEDIR" /> > >When run this only copies the normal files (at the root level) from the >directory specified in the LODEDIR property to the directory specified >in the INSTALLDIR property. LODEDIR also contains several subdirectories >and files. I want those be copied to INSTALLDIR also, but apparently the >"*.*" doesn't include these. > >Does anybody know if it is possible to use CopyFile (or better: the >MoveFiles table) to copy an entire directory tree from A to B? > >Greetings, > >Leon Zandman > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >WiX-users mailing list >WiX...@li... >https://lists.sourceforge.net/lists/listinfo/wix-users > > > -- The views expressed in this message do not necessarily constitute the views of SN Systems Ltd and information in this message is confidential and may be privileged. It is intended solely for the person to whom it is addressed. If you are not the intended recipient, please notify the sender and please delete the message from your system immediately. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ WiX-users mailing list WiX...@li... https://lists.sourceforge.net/lists/listinfo/wix-users |