title: Wix uninstall does not remove files
body: <p>I have a C# project with a WiX installer.</p>
  
  <p>When I install my application, all is working. I Have :</p>
  
  <ul>
  <li>my compagny folder in program files (x86), containing my application folder and the drivers folder.</li>
  <li>the shortcut in desktop</li>
  <li>the shortcut in start menu</li>
  </ul>
  
  <p>When application is installed, I can run my msi and I have an option to uninstall. But when I uninstall my application, only the drivers folder is removed (<code>MyApplication_Drivers</code>). I still have my application folder and the shortcuts.</p>
  
  <p>What I'm missing ?</p>
  
  <p>There is my code for product.wxs (entire code cause I don't know where the problem come from):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?define compagny = "My compagny"?&gt;
  &lt;?define product = "MyApplication"?&gt;
  &lt;?define version = "!(bind.FileVersion.MyApplication.exe)"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
      &lt;Product Id="*"
             Name="$(var.product)"
             Language="1033"
             Version="$(var.version)"
             Manufacturer="$(var.compagny)"
             UpgradeCode="***"&gt;
          &lt;Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /&gt;
          &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
      &lt;Media Id="1" Cabinet="MyApplication.cab" EmbedCab="yes"/&gt;
  
      &lt;Feature Id="ProductFeature" Title="$(var.product)" Level="1"&gt;
        &lt;ComponentGroupRef Id="ProductComponents"/&gt;
        &lt;ComponentRef Id ="InstallFonts" /&gt;
        &lt;ComponentRef Id ="ApplicationShortcut"/&gt;
        &lt;ComponentRef Id ="ApplicationShortcutDesk"/&gt;
      &lt;/Feature&gt;
  
      &lt;Property Id="WIXUI_INSTALLDIR" Value="COMPAGNYFOLDER"/&gt;    
  
      &lt;WixVariable Id="WixUIBannerBmp"
                   Value=".\Images\WixUIBannerBmp.bmp"/&gt;
      &lt;WixVariable Id="WixUIDialogBmp"
                   Value=".\Images\WixUIDialogBmp.bmp"/&gt;
  
      &lt;UI&gt;
        &lt;UIRef Id="WixUI_Custom"/&gt;      
  
        &lt;Publish Dialog="WelcomeDlg"
                 Control="Next"
                 Event="NewDialog"
                 Value="InstallDirDlg"
                 Order="2"&gt;1&lt;/Publish&gt;
  
        &lt;Publish Dialog="InstallDirDlg"
                 Control="Back"
                 Event="NewDialog"
                 Value="WelcomeDlg"
                 Order="2"&gt;1&lt;/Publish&gt;
      &lt;/UI&gt;
      &lt;/Product&gt;
  
    &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="FontsFolder" /&gt;
  
        &lt;Directory Id="ProgramMenuFolder"&gt;
          &lt;Directory Id="ApplicationProgramsFolder" Name="$(var.compagny)"/&gt;
        &lt;/Directory&gt;
  
        &lt;Directory Id="DesktopFolder" SourceName="Desktop"/&gt;
  
        &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="COMPAGNYFOLDER" Name="$(var.compagny)"&gt;
            &lt;Directory Id="INSTALLFOLDER" Name="$(var.product)"&gt;
              &lt;Directory Id="fr" Name="fr"/&gt;
              &lt;Directory Id="SETTINGS" Name="Settings"&gt;
                &lt;Directory Id="PRINTERS" Name="Printers"/&gt;
              &lt;/Directory&gt;
            &lt;/Directory&gt;
            &lt;Directory Id="Drivers" Name="MyApplication_Drivers"/&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
    &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;DirectoryRef Id="ApplicationProgramsFolder"&gt;
        &lt;Component Id="ApplicationShortcut" Guid="***"&gt;
          &lt;Shortcut Id="ApplicationStartMenuShortcut"
                    Name="$(var.product)"
                    Description="$(var.product) application"
                    Target="[#MyApplication.exe]"
                    WorkingDirectory="INSTALLFOLDER"/&gt;
          &lt;RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/&gt;
          &lt;RegistryValue Root="HKCU" Key="SOFTWARE\$(var.compagny)\$(var.product)" Name="installedStart" Type="integer" Value="1" KeyPath="yes"/&gt;
        &lt;/Component&gt;
      &lt;/DirectoryRef&gt;
  
      &lt;DirectoryRef Id="DesktopFolder"&gt;
        &lt;Component Id="ApplicationShortcutDesk" Guid="***"&gt;
          &lt;Shortcut Id="ApplicationStartDeskShortcut"
                    Name="$(var.product)"
                    Description="$(var.product) application"
                    Target="[#MyApplication.exe]"
                    WorkingDirectory="INSTALLFOLDER"/&gt;
          &lt;RemoveFolder Id="DesktopFolder" On="uninstall"/&gt;
          &lt;RegistryValue Root="HKCU" Key="SOFTWARE\$(var.compagny)\$(var.product)" Name="installedDesk" Type="integer" Value="1" KeyPath="yes"/&gt;
        &lt;/Component&gt;
      &lt;/DirectoryRef&gt;
  
      &lt;DirectoryRef Id="FontsFolder"&gt;
        &lt;Component Id="InstallFonts" Guid="{***}" Permanent="yes"&gt;
          &lt;File Id="OCRB_Medium.ttf" Source="$(var.SolutionDir)_Required\OCRB_Medium.ttf" TrueType="yes" /&gt;
          &lt;File Id="OCRBS___.TTF" Source="$(var.SolutionDir)_Required\OCRBS___.TTF" TrueType="yes" /&gt;
        &lt;/Component&gt;
      &lt;/DirectoryRef&gt;
    &lt;/Fragment&gt;
  
      &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents"&gt;
        &lt;!-- Application --&gt;
        &lt;Component Id="ProductComponent" Guid="{***}" Directory="INSTALLFOLDER" UninstallWhenSuperseded="yes"&gt;
          &lt;!-- DLL --&gt;
          &lt;File Id="Bitmap.Core.dll" Source="$(var._Delivery.TargetDir)..\bin\Bitmap.Core.dll"/&gt;
          &lt;File Id="PdfLib.dll" Source="$(var._Delivery.TargetDir)..\bin\PdfLib.dll"/&gt;
  
          &lt;!-- EXE --&gt;
          &lt;File Id="MyApplication.exe" Source="$(var._Delivery.TargetDir)..\bin\MyApplication.exe"/&gt;
          &lt;File Id="MyApplication.exe.config" Source="$(var._Delivery.TargetDir)..\bin\MyApplication.exe.config"/&gt;
        &lt;/Component&gt;
  
        &lt;!-- fr --&gt;
        &lt;Component Id="FRComponent" Guid="{***}" Directory="fr" UninstallWhenSuperseded="yes"&gt;
          &lt;File Id="resources-fr.dll" Source="$(var._Delivery.TargetDir)..\bin\fr\resources-fr.dll" /&gt;
        &lt;/Component&gt;
  
        &lt;!-- Settings --&gt;
        &lt;Component Id="SetComponent" Guid="{***}" Directory="SETTINGS" UninstallWhenSuperseded="yes"&gt;
          &lt;File Id="Settings.xml" Source="$(var.MyApplication.ProjectDir)Settings\Settings.xml" /&gt;
        &lt;/Component&gt;
  
        &lt;!-- Printers --&gt;
        &lt;Component Id="PrintComponent" Guid="{***}" Directory="PRINTERS" UninstallWhenSuperseded="yes"&gt;
          &lt;File Id="Sticker.xml" Source="$(var.MyApplication.ProjectDir)Settings\Printers\Sticker.xml" /&gt;
        &lt;/Component&gt;
  
        &lt;!-- Resources --&gt;
        &lt;Component Id="Drivers" Guid="{***}" Directory="Drivers" UninstallWhenSuperseded="yes"&gt;
          &lt;File Id="drivers.exe" Source="$(var.SolutionDir)_Required\drivers.exe"/&gt;
          &lt;File Id="user_manual_E.pdf" Source="$(var.SolutionDir)_Required\user_manual_E.pdf"/&gt;
        &lt;/Component&gt;
          &lt;/ComponentGroup&gt;
      &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>EDIT :</p>
  
  <ul>
  <li><p>An old version of this code was perfectly working</p></li>
  <li><p>I printed log while uninstall and this line seems to be related to this problem :</p></li>
  </ul>
  
  <blockquote>
    <p>MSI (c) (E8:BC) [10:58:16:769]: Disallowing uninstallation of
    component: {one of my guids} since another client exists</p>
  </blockquote>