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

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

  <?define WorkspacesImagesComponentFiles=?>
  <?define WorkspacesImagesComponentFilesPath=$(var.BinDir)Assets\Workspaces\?>

  <Fragment>
    <!-- Shortcut guide files -->
    <DirectoryRef Id="BaseApplicationsAssetsFolder">
      <Directory Id="WorkspacesAssetsInstallFolder" Name="Workspaces" />
    </DirectoryRef>
    <DirectoryRef Id="WorkspacesAssetsInstallFolder" FileSource="$(var.WorkspacesImagesComponentFilesPath)">
    <!-- Generated by generateFileComponents.ps1 -->
    <!--WorkspacesImagesComponentFiles_Component_Def-->
    </DirectoryRef>

    <!-- Workspaces -->
    <ComponentGroup Id="WorkspacesComponentGroup">
      <Component Id="RemoveWorkspacesAssetsFolder" Guid="34FC1245-1197-4025-9CF1-A298D509C2CC" Directory="WorkspacesAssetsInstallFolder">
        <RegistryKey Root="$(var.RegistryScope)" Key="Software\Classes\powertoys\components">
          <RegistryValue Type="string" Name="RemoveWorkspacesAssetsFolder" Value="" KeyPath="yes" />
        </RegistryKey>
        <RemoveFolder Id="RemoveFolderWorkspacesAssetsFolder" Directory="WorkspacesAssetsInstallFolder" On="uninstall" />
      </Component>
    </ComponentGroup>

  </Fragment>
</Wix>
