I'm using Wix Installer to copy a folder under program files folder. But I couldn't do it for entire folder. I can do it only by file by file basis.
I would appreciate any help on this regard
<Directory Id="CopyTestDir"...>
<Property Id="SOURCEDIRECTORY" Value="c:\doc\bin\path" />
<Component Guid="A7C42303-1D77-4C70-8D5C-0FD0F9158EB4" Id="CopyComponent">
<CopyFile Id="SomeId" SourceProperty="SOURCEDIRECTORY"
DestinationDirectory="CopyTestDir" SourceName="*" />
</Component>
It doesn't handle subdirectories though. If you don't have a known directory structure for the source files, then you'll need to pursue the semi-custom action approach, writing entries into the MoveFile table for each directory.