Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do copy a folder in wix [closed]

Tags:

wix

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

like image 520
Smaug Avatar asked Apr 17 '13 13:04

Smaug


People also ask

How do I use heat EXE on WiX?

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.


1 Answers

<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

like image 69
Rachel Gallen Avatar answered Sep 20 '22 19:09

Rachel Gallen