title: Make WIX installer place files in AppData
body: <p>I'm writing a dapp for ethereum client for windows. In order to make dapp available for user I have to place specific files in the folder in appdata. So I just should place some files in <code>%appdata%\Parity\Ethereum\dapps\mydappname</code>. But I always get weird errors with WIX, the last one is </p>
  
  <blockquote>
    <p>Error 93 ICE64: The directory dapp is in the user profile but is not
    listed in the RemoveFile table.</p>
  </blockquote>
  
  <p>I have following <code>myapp.wixproj</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Project ToolsVersion="4.0" DefaultTargets="Build" InitialTargets="EnsureWixToolsetInstalled" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;PropertyGroup&gt;
      &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
      &lt;Platform Condition=" '$(Platform)' == '' "&gt;x86&lt;/Platform&gt;
      &lt;ProductVersion&gt;3.10&lt;/ProductVersion&gt;
      &lt;ProjectGuid&gt;8beed2e4-8784-4cb5-8648-cdf55c5defe6&lt;/ProjectGuid&gt;
      &lt;SchemaVersion&gt;2.0&lt;/SchemaVersion&gt;
      &lt;OutputName&gt;FairsDapp&lt;/OutputName&gt;
      &lt;OutputType&gt;Package&lt;/OutputType&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "&gt;
      &lt;OutputPath&gt;bin\$(Configuration)\&lt;/OutputPath&gt;
      &lt;IntermediateOutputPath&gt;obj\$(Configuration)\&lt;/IntermediateOutputPath&gt;
      &lt;DefineConstants&gt;Debug&lt;/DefineConstants&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "&gt;
      &lt;OutputPath&gt;bin\$(Configuration)\&lt;/OutputPath&gt;
      &lt;IntermediateOutputPath&gt;obj\$(Configuration)\&lt;/IntermediateOutputPath&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;DefineConstants&gt;HarvestPath=dapp&lt;/DefineConstants&gt;
    &lt;/PropertyGroup&gt;      
    &lt;ItemGroup&gt;
      &lt;Compile Include="Product.wxs" /&gt;
      &lt;Compile Include="Dapp.wxs" /&gt;
    &lt;/ItemGroup&gt;
    &lt;Import Project="$(WixTargetsPath)" Condition=" '$(WixTargetsPath)' != '' " /&gt;
    &lt;Import Project="$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets" Condition=" '$(WixTargetsPath)' == '' AND Exists('$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets') " /&gt;
    &lt;Target Name="EnsureWixToolsetInstalled" Condition=" '$(WixTargetsImported)' != 'true' "&gt;
      &lt;Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" /&gt;
    &lt;/Target&gt;
    &lt;Target Name="BeforeBuild"&gt;
    &lt;HeatDirectory
      DirectoryRefId="INSTALLFOLDER"
      OutputFile="Dapp.wxs"
      Directory="dapp"
      ComponentGroupName="SourceComponentGroup"
      ToolPath="$(WixToolPath)"
      PreprocessorVariable="var.HarvestPath"
      AutogenerateGuids="true" /&gt;
    &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>And following wxs:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix
      xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
      &lt;Product Id="*" Name="Dapp" Language="1049" Version="1.0.0.3" Manufacturer="Me" UpgradeCode="fb09dccc-6606-4b5d-8dcb-28146c28663a" Codepage="1251"&gt;
          &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
          &lt;MediaTemplate EmbedCab="yes"/&gt;
          &lt;Feature Id="ProductFeature" Title="FDapp" Level="1"&gt;
              &lt;ComponentGroupRef Id="ProductComponents" /&gt;
          &lt;/Feature&gt;
      &lt;/Product&gt;
      &lt;Fragment&gt;
          &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
              &lt;Directory Id="AppDataFolder"&gt;
                  &lt;Directory Id="Parity"&gt;
                      &lt;Directory Id="dapps"&gt;
                          &lt;Directory Id="INSTALLFOLDER" Name="F2"&gt;&lt;/Directory&gt;
                      &lt;/Directory&gt;
                  &lt;/Directory&gt;
              &lt;/Directory&gt;
          &lt;/Directory&gt;
      &lt;/Fragment&gt;
      &lt;Fragment&gt;
          &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;&lt;/ComponentGroup&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>I found that I have to use <code>heat</code> task to create a correct files tree, but now I'm stuck with simple task "copy these files on user machine".</p>