<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <Fragment>

    <DirectoryRef Id="INSTALLDIR">

      <Component Id="Logo.ico">
        <File Id="Logo.ico" Name="Logo.ico" Source="Logo.ico" KeyPath="yes" />
        <RemoveFile Id="RemoveThumbnails" Name="*" On="uninstall" />
      </Component>

      <Component Id="license.txt">
        <File Id="license.txt" Source="license.txt" KeyPath="yes" />
      </Component>

    </DirectoryRef>

    <DirectoryRef Id="bin" FileSource="bin">

      <Component Id="nunit_console" Guid="F446D836-1FCE-4ef7-B290-E0F3B0EFBD40">
        <File Id="console.exe" Name="nunit-console.exe" />
        <File Id="console.config" Name="nunit-console.exe.config" />
        <RemoveFolder Id="RemoveBinFolder" On="uninstall" />
      </Component>

      <Component Id="nunit_agent" Guid="D8D73966-60FF-467d-AD71-47388F66E4C0">
        <File Id="nunit_agent.exe" Name="nunit-agent.exe" />
        <File Id="nunit_agent.config" Name="nunit-agent.exe.config" />
      </Component>

    </DirectoryRef>

    <DirectoryRef Id="lib" FileSource="bin\lib">

      <Component Id="nunit.core">
        <File Id="nunit.core.dll" Name="nunit.core.dll" />
      </Component>

      <Component Id="nunit.core.interfaces">
        <File Id="nunit.core.interfaces.dll"
              Name="nunit.core.interfaces.dll" />
      </Component>

      <Component Id="nunit.util">
        <File Id="nunit.util.dll" Name="nunit.util.dll" />
      </Component>

      <Component Id="console.dll">
        <File Id="console.dll.dll" Name="nunit-console-runner.dll" />
      </Component>

    </DirectoryRef>

    <DirectoryRef Id="addins">

      <Component Id="AddinsFolder" Guid="D7905B7E-A9E8-42f6-B074-6A93A8FF4DE8">

        <CreateFolder />
        <RemoveFile Id="RemoveAddins" Name="*.*" On="uninstall" />
        <RemoveFolder Id="RemoveAddinFolder" On="uninstall" />

      </Component>

    </DirectoryRef>

    <DirectoryRef Id="framework" FileSource="bin\framework">

      <Component Id="nunit.framework" Guid="352BE076-B7B8-4a0f-B953-F626B5D91144">
        <File Id="nunit.framework.dll" Name="nunit.framework.dll" />
        <File Id="nunit.framework.xml" Name="nunit.framework.xml" />
      </Component>

      <Component Id="nunit.mocks">
        <File Id="nunit.mocks.dll" Name="nunit.mocks.dll" />
      </Component>

      <Component Id="AssemblyReferenceFolder">

        <RegistryKey Root="HKMU"
  Key="Software\Microsoft\.NETFramework\AssemblyFolder\NUnit [ProductVersion]"
                     Action="createAndRemoveOnUninstall">
          <RegistryValue Action="write" Type="string" Value="[framework]" />
        </RegistryKey>

      </Component>

    </DirectoryRef>

  </Fragment>
</Wix>