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
Navigate to WiX's bin directory from a command prompt and type heat.exe -? to see information about its usage. To make things easy, consider adding the path to the WiX bin directory to your computer's PATH environment variable so that you won't have to reference the full path to the executable each time you use it.
<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.
source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With