Wix add external dll in the installation folder
<p>I'm new with Wix, and I'm trying to build a windows service install package with Wix 3.10 in Visual Studio 2012, but I am unable to add dll external references.</p>

<p>i have my project which is the Windwos Service I want to install with references. And ParodosService.Setup which is my installer project. :</p>

<p>here is my .wxs file from ParodosService.Setup project:</p>

<pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!-- The name of the product --&gt;
&lt;?define Name = "Vision Service" ?&gt;
&lt;!-- The manufacturer, for setup package publisher and folder info --&gt;
&lt;?define Manufacturer = "MyCompany" ?&gt;
&lt;!-- The version number of this setup package--&gt;
&lt;?define Version = "1.0.1" ?&gt;
&lt;!-- UpgradeCode must be unique and not changed once the first version of the program is installed. --&gt;
&lt;?define UpgradeCode = "{1240E0CD-B3D2-44A7-B064-11B3C0709D69}" ?&gt;

&lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
  &lt;Product Id="*" Name="$(var.Name)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)" Version="$(var.Version)" Language="1033"&gt;
    &lt;!-- Create a folder inside Talk Sharp called Test Service --&gt;
    &lt;Package InstallerVersion="300" Compressed="yes"/&gt;
    &lt;!-- Create a folder inside Talk Sharp called Test Service --&gt;
    &lt;Media Id="1" Cabinet="ParodosService.cab" EmbedCab="yes" /&gt;
    &lt;!-- Allow upgrades and prevent downgrades --&gt;
    &lt;MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." /&gt;
    &lt;!-- Define the directory structure --&gt;
    &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
      &lt;Directory Id="ProgramFilesFolder"&gt;
        &lt;!-- Create a folder inside program files called Talk Sharp --&gt;
        &lt;Directory Id="ROOTDIRECTORY" Name="$(var.Manufacturer)"&gt;
          &lt;!-- Create a folder inside Talk Sharp called Test Service --&gt;
          &lt;Directory Id="INSTALLFOLDER" Name="$(var.Name)" /&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
    &lt;/Directory&gt;

    &lt;ComponentGroup Id="DllsComponent" Directory="INSTALLFOLDER" Source="C:\Users\Pasquale\Documents\Visual Studio 2012\Projects\ParodosService\ParodosService\bin\Release"&gt;      
      &lt;Component Id="EntityFramework.dll"&gt;
        &lt;File Name="EntityFramework.dll" /&gt;
      &lt;/Component&gt;
      &lt;Component Id="EntityFramework.SqlServer.dll"&gt;
        &lt;File Name="EntityFramework.SqlServer.dll" /&gt;
      &lt;/Component&gt;          
      &lt;Component Id="ParodosService.exe.config"&gt;
        &lt;File Name="ParodosService.exe.config" /&gt;
      &lt;/Component&gt;
    &lt;/ComponentGroup&gt;
    &lt;!-- The files inside this DirectoryRef are linked to the Test Service directory via INSTALLFOLDER --&gt;
    &lt;DirectoryRef Id="INSTALLFOLDER"&gt;
      &lt;!-- Create a single component which is the ParodosService.exe file --&gt;
      &lt;Component Id="$(var.ParodosService.TargetFileName)"&gt;
        &lt;!-- Copies the ParodosService.exe file using the project reference preprocessor variables --&gt;
        &lt;File Id="$(var.ParodosService.TargetFileName)" Source="$(var.ParodosService.TargetPath)" KeyPath="yes" /&gt;
        &lt;!-- Remove all files from the INSTALLFOLDER on uninstall --&gt;
        &lt;RemoveFile Id="ALLFILES" Name="*.*" On="both" /&gt;
        &lt;!-- Tell WiX to install the Service --&gt;
        &lt;ServiceInstall Id="ServiceInstaller" 
                        Type="ownProcess" 
                        Name="ParodosService" 
                        DisplayName="$(var.Name)" 
                        Description="A Test Service that logs dummy text on an interval to a text file." 
                        Start="auto" 
                        ErrorControl="normal" /&gt;
        &lt;!-- Tell WiX to start the Service --&gt;
        &lt;ServiceControl Id="StartService" Start="install" Stop="both" remove="uninstall" Name="ParodosService" Wait="yes" /&gt;
      &lt;/Component&gt;
    &lt;/DirectoryRef&gt;
    &lt;!-- Tell WiX to install the files --&gt;
    &lt;Feature Id="MainApplication" Title="Main Application" Level="1"&gt;
      &lt;ComponentRef Id="$(var.ParodosService.TargetFileName)" /&gt;
    &lt;/Feature&gt;
  &lt;/Product&gt;
&lt;/Wix&gt;
</code></pre>

<p>I manually added three Component in the ComponentGroup specifying  the three files i need in the instalation folder of my windows service.
This kind of manual modification, returns me one error for each added file:</p>

<pre><code>ICE21: Component: 'EntityFramework.dll' does not belong to any Feature.
</code></pre>

<p>As i'm new with WIX, i had trouble to do this with heat.exe too, and i tought that this was the easier way, but both ways give me errors...</p>