<commit_before><?xml version="1.0" encoding="UTF-8"?>
<?include Includes.wxi?>
<?define Version = "0.0.1.4" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Product Id="*" Name="MiniPie" Language="1033" Version="$(var.Version)" Manufacturer="<NAME>" UpgradeCode="dbc14073-d8d4-48ec-95c9-ec61b7ca54ae">
    
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
    <Upgrade Id="dbc14073-d8d4-48ec-95c9-ec61b7ca54ae">
      <UpgradeVersion Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
      <UpgradeVersion Minimum="0.0.0.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" />
    </Upgrade>

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


    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="MiniPie">
          <Directory Id="COVERCACHE" Name="CoverCache"/>
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="MiniPie">
        </Directory>
        <Directory Id="DesktopFolder" Name="Desktop"></Directory>
      </Directory>
    </Directory>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
      <Custom Action="NewerVersion" After="FindRelatedProducts">NEWERVERSIONDETECTED</Custom>
    </InstallExecuteSequence>

    <CustomAction Id="NewerVersion" Error="A later version of [ProductName] is already installed." />
    
    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    <Icon Id="icon.ico" SourceFile="$(var.CodePath)\App.ico"/>
    <Property Id="ARPPRODUCTICON" Value="icon.ico" />
    <UIRef Id="WixUI_InstallDir" />
    
    <Feature Id="ProductFeature" Title="MiniPie" Level="1">
      <ComponentGroupRef Id="MiniPie" Primary="yes"/>
      <Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="E7ED4E7B-545C-4898-8FA8-4F94B7D2DD0D">
        <Shortcut Id="ApplicationStartMenuShortcut" Name="MiniPie" Description="Spotify Miniplayer"
                  Target="[INSTALLFOLDER]MiniPie.exe" WorkingDirectory="INSTALLFOLDER" />
        <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
        <RegistryValue Root="HKCU" Key="Software\MiniPie" Name="installed" Type="integer" Value="1" KeyPath="yes" />
      </Component>

      <Component Id="ApplicationShortcutDesktop" Directory="DesktopFolder" Guid="0C784641-194A-44AF-BCF7-8A6DEF226AF6">
        <Shortcut Id="ApplicationDesktopShortcut" Name="MiniPie" Description="Spotify Miniplayer"
                  Target="[INSTALLFOLDER]MiniPie.exe" WorkingDirectory="INSTALLFOLDER" />
        <RemoveFolder Id="RemoveDesktopFolder" Directory="DesktopFolder" On="uninstall" />
        <RegistryValue Root="HKCU" Key="Software\MiniPie" Name="installed" Type="integer" Value="1" KeyPath="yes" />
      </Component>
      <Component Id="CoverCache" Directory="COVERCACHE" Guid="C8D7E67B-3DF5-463B-B8A3-8227425CB279">
        <RemoveFolder Id="RemoveCoverCache" Directory="COVERCACHE" On="uninstall"/>
      </Component>
    </Feature>
    <UI />
  </Product>

  <Fragment>
    
  </Fragment>
</Wix><commit_msg>Create cache folder during install, fix fantom crash I've experienced.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<?include Includes.wxi?>
<?define Version = "0.0.1.4" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
  <Product Id="*" Name="MiniPie" Language="1033" Version="$(var.Version)" Manufacturer="<NAME>" UpgradeCode="dbc14073-d8d4-48ec-95c9-ec61b7ca54ae">
    
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
    <Upgrade Id="dbc14073-d8d4-48ec-95c9-ec61b7ca54ae">
      <UpgradeVersion Minimum="$(var.Version)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" />
      <UpgradeVersion Minimum="0.0.0.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" />
    </Upgrade>

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


    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="MiniPie">
          <Directory Id="COVERCACHE" Name="CoverCache"/>
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="MiniPie">
        </Directory>
        <Directory Id="DesktopFolder" Name="Desktop"></Directory>
      </Directory>
    </Directory>

    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
      <Custom Action="NewerVersion" After="FindRelatedProducts">NEWERVERSIONDETECTED</Custom>
    </InstallExecuteSequence>

    <CustomAction Id="NewerVersion" Error="A later version of [ProductName] is already installed." />
    
    <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
    <Icon Id="icon.ico" SourceFile="$(var.CodePath)\App.ico"/>
    <Property Id="ARPPRODUCTICON" Value="icon.ico" />
    <UIRef Id="WixUI_InstallDir" />
    
    <Feature Id="ProductFeature" Title="MiniPie" Level="1">
      <ComponentGroupRef Id="MiniPie" Primary="yes"/>
      <Component Id="ApplicationShortcut" Directory="ApplicationProgramsFolder" Guid="E7ED4E7B-545C-4898-8FA8-4F94B7D2DD0D">
        <Shortcut Id="ApplicationStartMenuShortcut" Name="MiniPie" Description="Spotify Miniplayer"
                  Target="[INSTALLFOLDER]MiniPie.exe" WorkingDirectory="INSTALLFOLDER" />
        <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall" />
        <RegistryValue Root="HKCU" Key="Software\MiniPie" Name="installed" Type="integer" Value="1" KeyPath="yes" />
      </Component>

      <Component Id="ApplicationShortcutDesktop" Directory="DesktopFolder" Guid="0C784641-194A-44AF-BCF7-8A6DEF226AF6">
        <Shortcut Id="ApplicationDesktopShortcut" Name="MiniPie" Description="Spotify Miniplayer"
                  Target="[INSTALLFOLDER]MiniPie.exe" WorkingDirectory="INSTALLFOLDER" />
        <RemoveFolder Id="RemoveDesktopFolder" Directory="DesktopFolder" On="uninstall" />
        <RegistryValue Root="HKCU" Key="Software\MiniPie" Name="installed" Type="integer" Value="1" KeyPath="yes" />
      </Component>
      <Component Id="CoverCache" Directory="COVERCACHE" Guid="C8D7E67B-3DF5-463B-B8A3-8227425CB279">
        <CreateFolder Directory="COVERCACHE"/>
      </Component>
    </Feature>
    <UI />
  </Product>

  <Fragment>
    
  </Fragment>
</Wix>
{'fraction_non_alphanumeric': 0.15235496840896037, 'fraction_numerical': 0.03360137851809305, 'mean_word_length': 4.567545963229416, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 2, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 4, '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': '4194392', 'n_tokens_mistral': 2381, 'n_tokens_neox': 2162, 'n_words': 340}