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

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

  <?define RegistryPreviewAssetsFiles=?>
  <?define RegistryPreviewAssetsFilesPath=$(var.BinDir)WinUI3Apps\Assets\RegistryPreview?>

  <Fragment>
    <!-- Registry Preview -->
    <DirectoryRef Id="WinUI3AppsAssetsFolder">
      <Directory Id="RegistryPreviewAssetsInstallFolder" Name="RegistryPreview" />
    </DirectoryRef>
    <DirectoryRef Id="RegistryPreviewAssetsInstallFolder" FileSource="$(var.RegistryPreviewAssetsFilesPath)">
    <!-- Generated by generateFileComponents.ps1 -->
    <!--RegistryPreviewAssetsFiles_Component_Def-->
    </DirectoryRef>

    <ComponentGroup Id="RegistryPreviewComponentGroup">
      <Component Id="RemoveRegistryPreviewFolder" Guid="D3DBC395-FAC5-44B1-BE44-3FE2B6E0F391" Directory="RegistryPreviewAssetsInstallFolder" >
        <RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
          <RegistryValue Type="string" Name="RemoveRegistryPreviewFolder" Value="" KeyPath="yes"/>
        </RegistryKey>
        <RemoveFolder Id="RemoveFolderRegistryPreviewAssetsFolder" Directory="RegistryPreviewAssetsInstallFolder" On="uninstall"/>
      </Component>
    </ComponentGroup>

  </Fragment>
</Wix>