﻿<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
  <?include Includes.wxi?>
  <Fragment Id="FeaturesFragment">
    <Feature Id="DefaultFeature" Level="1" ConfigurableDirectory="INSTALLDIR" Title="TortoiseSVN" Absent="disallow"
    TypicalDefault="install" Description="The TortoiseSVN package and dependencies." Display="expand" InstallDefault="local" >
      <ComponentRef Id="C__infofiles" />
      <ComponentRef Id="C__apr" />
      <ComponentRef Id="C__sasl" />
      <ComponentRef Id="C__gettext" />
      <ComponentRef Id="C__TortoiseSVN" />
      <?if $(env.Platform) = "x64" ?>
        <ComponentRef Id="C__TortoiseSVN32" />
      <?endif ?>
      <ComponentRef Id="C__TortoiseSVNShortcuts" />
      <ComponentRef Id="C__TortoiseMerge" />
      <ComponentRef Id="C__TortoiseMergeShortcuts" />
      <ComponentRef Id="C__TortoiseBlame" />
      <ComponentRef Id="C__TortoiseIDiff" />
      <ComponentRef Id="C__TortoiseIDiffShortcuts" />
      <ComponentRef Id="C__TortoiseUDiff" />
      <ComponentRef Id="C__PlainSettingsShortcuts" />
      <ComponentRef Id="C__PlatformSettingsShortcuts" />
      <ComponentRef Id="C__ProgramMenuFolder" />
      <ComponentRef Id="C__DiffScripts" />
      <ComponentRef Id="C_LanguagePacks" />

      <?if $(env.Platform) = "arm64" ?>
        <ComponentRef Id="C__crtmfc" />
      <?endif ?>

      <?if $(env.Platform) != "arm64" ?>
        <Feature Id="F_CRT" Level="1" Title="C-Runtime" Description="The Visual-C Runtime libs" TypicalDefault="install" Display="hidden" >
          <MergeRef Id="CRT" />
          <?if $(env.Platform) = "x64" ?>
            <MergeRef Id="CRT32" />
          <?endif ?>
        </Feature>
        <Feature Id="F_MFC" Level="1" Title="MFC 14.0" Description="The MFC 14.0 libs" TypicalDefault="install" Display="hidden" >
          <MergeRef Id="MFC" />
          <MergeRef Id="MFCLOC" />
        </Feature>
      <?endif ?>
      <Feature Id="F_OVL" Level="1" Title="Tortoise Overlay handler" Description="The overlay handler for all Tortoise clients" TypicalDefault="install" Display="hidden" >
        <MergeRef Id="Ovlays" />
        <?if $(env.Platform) = "x64" ?>
        <MergeRef Id="Ovlays32" />
        <?endif ?>
      </Feature>

      <Feature Id="MoreIcons" Level="1" Title="Additional icon sets" Description="Additional sets of icon overlays in different styles" TypicalDefault="install" Absent="allow">
        <ComponentRef Id="C__iconscvsclassic" />
        <ComponentRef Id="C__iconsmodern" />
        <ComponentRef Id="C__iconsmarkphippard" />
        <ComponentRef Id="C__iconsstraight" />
        <ComponentRef Id="C__iconsfunction" />
        <ComponentRef Id="C__iconsdechenesxp" />
        <ComponentRef Id="C__iconsdechenesvista" />
        <ComponentRef Id="C__iconsblip" />
        <ComponentRef Id="C__iconsblipclean" />
        <ComponentRef Id="C__iconsmufwin7" />
        <ComponentRef Id="C__iconswin10" />
        <ComponentRef Id="C__iconsflat" />
        <ComponentRef Id="C__iconsillustration" />
        <ComponentRef Id="C__iconsprofessional" />
        <ComponentRef Id="C__iconsribbon" />
      </Feature>

      <Feature Id="CLI" Level="200" Title="command line client tools" Description="The svn command line client tools" TypicalDefault="install" Absent="allow">
        <ComponentRef Id="C__CLI" />
        <ComponentRef Id="C__CLIREG" />
      </Feature>

      <?if $(env.IncludeCrashReportDll) = 1 ?>
        <Feature Id="CrashReporter" Level="1" Title="Crash Reporter" Description="Sends crash dumps to the developers." TypicalDefault="install" InstallDefault="followParent" Absent="allow">
          <ComponentRef Id="C__crash" />
        </Feature>
      <?endif ?>

      <Feature Id="UDiffAssoc" Level="1" Title="Register diff/patch files" Description="Associate .diff and .patch files with TortoiseUDiff" TypicalDefault="install" Absent="allow">
        <ComponentRef Id="C__TortoiseUDiffAssoc" />
      </Feature>

      <Feature Id="DictionaryENGB" Level="1" Title="English (GB) dictionary" Description="English (GB) spell checker dictionary" TypicalDefault="install" Absent="allow">
        <ComponentRef Id="C__DictionaryENGB" />
      </Feature>

      <Feature Id="DictionaryENUS" Level="1" Title="English (US) dictionary" Description="English (US) spell checker dictionary" TypicalDefault="install" Absent="allow">
        <ComponentRef Id="C__DictionaryENUS" />
      </Feature>

    </Feature>
  </Fragment>
</Wix>
