title: Removing application use(r)-generated files with WiX
body: <p>Currently, our user data hierarchy looks like this:</p>
  
  <p>LocalAppDataFolder/Company/Product</p>
  
  <p>This makes sense as far as it goes because a user might have multiple products installed. However, WiX will not let me remove just the Product folder.</p>
  
  <pre><code>&lt;Directory Id="LocalAppDataFolder"&gt;
      &lt;Directory Id="ManufacturerDir" Name="Company"&gt;
          &lt;Directory Id="AppDataDir" Name="Product"&gt;
              &lt;Component Id="AppData" Guid="some_guid"&gt;
                  &lt;RemoveFolder Id="AppDataDir" On="uninstall" /&gt;
                  &lt;RegistryValue Root="HKCU" Key="Software\Company\Product" Type="string" Value="" /&gt;
              &lt;/Component&gt;
          &lt;/Directory&gt;
      &lt;/Directory&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The above snippet causes the error, "LGHT0204 : ICE64: The directory Company is in the user profile but is not listed in the RemoveFile table." Obviously, I don't want to wipe the data from other products. Several examples that I've found are only one directory deep, i.e. they do not include an intervening directory, in this case Company.</p>
  
  <p>I get the feeling that I am misunderstanding something here. What? Many thanks.</p>