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

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

  <?define PowerDisplayAssetsFiles=?>
  <?define PowerDisplayAssetsFilesPath=$(var.BinDir)WinUI3Apps\Assets\PowerDisplay?>

  <Fragment>
    <!-- Power Display -->
    <DirectoryRef Id="WinUI3AppsAssetsFolder">
      <Directory Id="PowerDisplayAssetsInstallFolder" Name="PowerDisplay" />
    </DirectoryRef>
    <DirectoryRef Id="PowerDisplayAssetsInstallFolder" FileSource="$(var.PowerDisplayAssetsFilesPath)">
    <!-- Generated by generateFileComponents.ps1 -->
    <!--PowerDisplayAssetsFiles_Component_Def-->
    </DirectoryRef>

    <ComponentGroup Id="PowerDisplayComponentGroup">
      <Component Id="RemovePowerDisplayFolder" Guid="B8F2E3A5-72C1-4A2D-9B3F-8E5D7C6A4F9B" Directory="PowerDisplayAssetsInstallFolder" >
        <RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
          <RegistryValue Type="string" Name="RemovePowerDisplayFolder" Value="" KeyPath="yes"/>
        </RegistryKey>
        <RemoveFolder Id="RemoveFolderPowerDisplayAssetsFolder" Directory="PowerDisplayAssetsInstallFolder" On="uninstall"/>
      </Component>
    </ComponentGroup>

  </Fragment>
</Wix>