<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Fragment>
    <DirectoryRef Id="INSTALLFOLDER">
      <Directory Id="SQLITEX86" Name="x86" />
      <Directory Id="SQLITEX64" Name="x64" />
    </DirectoryRef>
    
    <ComponentGroup Id="SQLiteRepositoryComponents" >
      <ComponentGroupRef Id="SQLiteRepository" />
      <ComponentGroupRef Id="SQLiteInterop" />
    </ComponentGroup>
    
    <ComponentGroup Id="SQLiteRepository" Directory="INSTALLFOLDER">
      <Component Id="SQLiteNet" Guid="{65D7D3DB-AB4A-41DE-956E-ACBC1EC1E5B7}">
        <File Id="SQLiteNet.dll"
              Source="$(var.SQLiteRepository.TargetDir)\SQLite.Net.dll"
              KeyPath="yes"
              Checksum="yes" />
      </Component>
      <Component Id="SQLiteNetPlatformGeneric" Guid="{6E540212-B40B-41EB-BD81-1D8625F330D3}">
        <File Id="SQLiteNetPlatformGenericDll"
              Source="$(var.SQLiteRepository.TargetDir)\SQLite.Net.Platform.Generic.dll"
              KeyPath="yes"
              Checksum="yes"/>
      </Component>
      <Component Id="SQLiteNetPlatformWin32" Guid="{41E99987-0901-44D8-A2E8-2BCE18660298}">
        <File Id="SQLiteNetPlatformWin32.dll"
              Source="$(var.SQLiteRepository.TargetDir)\SQLite.Net.Platform.Win32.dll"
              KeyPath="yes"
              Checksum="yes"/>
      </Component>
      <Component Id="SQLiteRepository" Guid="{B109C5DD-FD21-4078-9534-6065753F2900}">
        <File Id="SQLiteRepository.dll"
              Source="$(var.SQLiteRepository.TargetDir)\SQLiteRepository.dll"
              KeyPath="yes"
              Checksum="yes"/>
      </Component>
    </ComponentGroup>

    <ComponentGroup Id="SQLiteInterop">
      <Component Id="SQLiteInteropx86" Guid="{7D4C1BF5-A6B5-4379-B040-4AD6BABBB526}" Directory="SQLITEX86">
        <File Id="SQLite.Interop.dllx86"
              Source="$(var.WindowsDataCenter.TargetDir)x86\SQLite.Interop.dll"
              KeyPath="yes"
              Checksum="yes"/>
      </Component>
      <Component Id="SQLiteInteropx64" Guid="{3591D185-ECBA-4382-BE75-FF6A271CEE3B}" Directory="SQLITEX64">
        <File Id="SQLite.Interop.dllx64"
              Source="$(var.WindowsDataCenter.TargetDir)x64\SQLite.Interop.dll"
              KeyPath="yes"
              Checksum="yes"/>
      </Component>
    </ComponentGroup>
	</Fragment>
</Wix>
