<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">

  <?include $(sys.CURRENTDIR)\Common.wxi?>

  <?define AwakeImagesFiles=?>
  <?define AwakeImagesFilesPath=$(var.BinDir)\Assets\Awake\?>

  <Fragment>
    <!-- Awake images -->

    <DirectoryRef Id="BaseApplicationsAssetsFolder">
      <Directory Id="AwakeImagesFolder" Name="Awake" />
    </DirectoryRef>

    <DirectoryRef Id="AwakeImagesFolder" FileSource="$(var.AwakeImagesFilesPath)">
    <!-- Generated by generateFileComponents.ps1 -->
    <!--AwakeImagesFiles_Component_Def-->
    </DirectoryRef>

    <ComponentGroup Id="AwakeComponentGroup">
      <Component Id="RemoveAwakeFolder" Guid="95D7774C-69A3-48A3-B417-1BD9664BE974" Directory="INSTALLFOLDER">
        <RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
          <RegistryValue Type="string" Name="RemoveAwakeFolder" Value="" KeyPath="yes" />
        </RegistryKey>
        <RemoveFolder Id="RemoveFolderAwakeImagesFolder" Directory="AwakeImagesFolder" On="uninstall" />
      </Component>
    </ComponentGroup>

  </Fragment>
</Wix>
