<commit_before>﻿<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?ifndef $(env.APPVEYOR)?>
  <?define APPVER="1.0.0.0"?>
  <?else?>
  <?define APPVER=$(env.APPVEYOR_BUILD_VERSION)?>
  <?endif ?>

  <Product Id="*" Name="Tabular Data Package Builder" Language="1033"
           Version="$(var.APPVER)"
           Manufacturer="<NAME>" UpgradeCode="0940725d-809b-4111-b115-d4c121031abb">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate EmbedCab="yes" CompressionLevel="high" />

    <Feature Id="MainFeature" Title="Tabular Data Package Builder" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
      <ComponentRef Id="ProductStartMenu" />
    </Feature>

    <Icon Id="icon.ico" SourceFile="..\..\Logo\data-wrench.ico" />

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    <Property Id="ARPPRODUCTICON" Value="icon.ico" />
    <Property Id="ARPURLINFOABOUT">https://github.com/matt40k/TabularDataPackage</Property>

    <UI>
      <UIRef Id="WixUI_InstallDir" />
    </UI>

    <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
    <WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
    <WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
  </Product>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="Tabular Data Package Builder" />
      </Directory>
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="Tabular Data Package Builder">
          <Component Id="ProductStartMenu">
            <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
            <RegistryValue Root="HKCU" Key="Software\Microsoft\[ProductName]" Name="installed" Type="integer" Value="1"
                           KeyPath="yes" />
          </Component>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>
    <ComponentGroup Id="ProductComponents">
      <Component Id="ProductComponentMain" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetPath)" KeyPath="yes">
          <Shortcut Id="StartMenuShort" Name="Tabular Data Package Builder" Advertise='yes'
                    WorkingDirectory="INSTALLDIR" Directory="ApplicationProgramsFolder" />
        </File>
      </Component>
      <Component Id="ProductComponentMainConfig" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetPath).config" />
      </Component>
      <Component Id="ProductComponentLicenseJson" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)License.json" />
      </Component>
      <Component Id="ProductComponentLicenseDll" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)License.dll" />
      </Component>
      <Component Id="ProductComponentPackageDll" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)DataPackage.dll" /><commit_msg>fix startmenu shortcut<commit_after>﻿<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?ifndef $(env.APPVEYOR)?>
  <?define APPVER="1.0.0.0"?>
  <?else?>
  <?define APPVER=$(env.APPVEYOR_BUILD_VERSION)?>
  <?endif ?>

  <Product Id="*" Name="Tabular Data Package Builder" Language="1033"
           Version="$(var.APPVER)"
           Manufacturer="<NAME>" UpgradeCode="0940725d-809b-4111-b115-d4c121031abb">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate EmbedCab="yes" CompressionLevel="high" />

    <Feature Id="MainFeature" Title="Tabular Data Package Builder" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
      <ComponentRef Id="ProductStartMenu" />
    </Feature>

    <Icon Id="icon.ico" SourceFile="..\..\Logo\data-wrench.ico" />

    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    <Property Id="ARPPRODUCTICON" Value="icon.ico" />
    <Property Id="ARPURLINFOABOUT">https://github.com/matt40k/TabularDataPackage</Property>

    <UI>
      <UIRef Id="WixUI_InstallDir" />
    </UI>

    <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
    <WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
    <WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
  </Product>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="Tabular Data Package Builder" />
      </Directory>
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="Tabular Data Package Builder">
          <Component Id="ProductStartMenu">
            <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
            <RegistryValue Root="HKCU" Key="Software\Microsoft\[ProductName]" Name="installed" Type="integer" Value="1"
                           KeyPath="yes" />
          </Component>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>
    <ComponentGroup Id="ProductComponents">
      <Component Id="ProductComponentMain" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetPath)" KeyPath="yes">
          <Shortcut Id="StartMenuShort" Name="Tabular Data Package Builder" Advertise="yes" Icon="icon.ico" WorkingDirectory="INSTALLFOLDER" Directory="ApplicationProgramsFolder" />
        </File>
      </Component>
      <Component Id="ProductComponentMainConfig" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetPath).config" />
      </Component>
      <Component Id="ProductComponentLicenseJson" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)License.json" />
      </Component>
      <Component Id="ProductComponentLicenseDll" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)License.dll" />
      </Component>
      <Component Id="ProductComponentPackageDll" Directory="INSTALLFOLDER">
        <File Source="$(var.TabularDataPackageBuilder.TargetDir)DataPackage.dll" />
{'fraction_non_alphanumeric': 0.14989160730876433, 'fraction_numerical': 0.01424589656240322, 'mean_word_length': 3.972286374133949, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 2, '>': 125, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4734330', 'n_tokens_mistral': 2022, 'n_tokens_neox': 1890, 'n_words': 317}