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

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

  <?define ShortcutGuideSvgFiles=?>
  <?define ShortcutGuideSvgFilesPath=$(var.BinDir)\Assets\ShortcutGuide\?>

  <Fragment>
    <!-- Shortcut guide files -->
    <DirectoryRef Id="BaseApplicationsAssetsFolder">
      <Directory Id="ShortcutGuideSvgsInstallFolder" Name="ShortcutGuide" />
    </DirectoryRef>
    <DirectoryRef Id="ShortcutGuideSvgsInstallFolder" FileSource="$(var.ShortcutGuideSvgFilesPath)">
    <!-- Generated by generateFileComponents.ps1 -->
    <!--ShortcutGuideSvgFiles_Component_Def-->
    </DirectoryRef>

    <!-- Shortcut guide -->
    <ComponentGroup Id="ShortcutGuideComponentGroup">
      <Component Id="RemoveShortcutGuideFolder" Guid="AD1ABC55-B593-4A60-A86A-BA8C0ED493A5" Directory="ShortcutGuideSvgsInstallFolder">
        <RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
          <RegistryValue Type="string" Name="RemoveShortcutGuideFolder" Value="" KeyPath="yes" />
        </RegistryKey>
        <RemoveFolder Id="RemoveFolderShortcutGuideSvgsInstallFolder" Directory="ShortcutGuideSvgsInstallFolder" On="uninstall" />
      </Component>
    </ComponentGroup>

  </Fragment>
</Wix>
