title: CopyFile not working
body: <p>I am creating a WiX installer where I want to move a file that exists on the end-user's computer to a location of their choosing. However, CopyFile is not working and the log file is showing no errors.</p>
  
  <p>Here is my Directory Tree:</p>
  
  <pre><code>&lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
    &lt;Directory Id="ProgramFilesFolder"&gt;
      &lt;Directory Id="INSTALLFOLDER" Name="Remindex"&gt;
      &lt;/Directory&gt;
    &lt;/Directory&gt;
    &lt;Directory Id="DATALOCATION" Name="File"/&gt;
    &lt;Directory Id="ORIGINALDATA"/&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>And my CopyFile component:</p>
  
  <pre><code>&lt;DirectoryRef Id="TARGETDIR"&gt;
    &lt;Component Id="CMP_Data" Guid="{C35F8888-D868-4B18-991E-29E217EFE445}" KeyPath="yes"&gt;
      &lt;CopyFile Id="CopyData" 
                DestinationDirectory="DATALOCATION" 
                DestinationName="Remindex Local Data" 
                SourceProperty="ORIGINALDATA" 
                SourceName="Remindex Local Data" 
                Delete="yes"/&gt;
    &lt;/Component&gt;
  &lt;/DirectoryRef&gt;
  </code></pre>
  
  <p>DATALOCATION is a property which contains the path the user chooses in a PathEdit dialog. ORIGINALDATA is the original location of the files to be moved. So the files should be moved from ORIGINALDATA to DATALOCATION. However, nothing is happening. I tried putting ORIGINALDATA in both the SourceDirectory and SourceProperty attributes.</p>
  
  <p>The component shows up three times in the log file (not side by side), although I'm not sure what to make of these entries:</p>
  
  <pre><code>Component: CMP_Data; Installed: Absent; Request: Local; Action: Local
  
  _CMP_Data65; Installed: Null; Request: Local; Action: Local
  
  _CMP_Data66; Installed: Null; Request: Local; Action: Local
  </code></pre>
  
  <p>Any suggestions would be greatly appreciated.</p>