<commit_before>﻿<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Product Id="*"
		Name="Tomboy Notes"
		Language="1033"
		Version="!(bind.FileVersion.Tomboy.exe)"
		UpgradeCode="4401CB77-D6D4-4903-B1F9-41E2F80DF785"
		Manufacturer="Tomboy Project">
		<Package Description="Tomboy Notes"
			Comments="Installs or upgrades Tomboy notes/"
			InstallerVersion="200"
			Compressed="yes"/>
		<!--
			Source media for the installation. 
 			Specifies a single cab file to be embedded in the installer's .msi. 
		-->
		<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
		
		<!-- Installation directory and files are defined in Files.wxs -->
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramMenuFolder" Name="Programs" />
			<Directory Id="DesktopFolder" Name="Desktop" />
		</Directory>

		<!--
			The install directory will be stored in the registry 
			this way, future "upgrades" can auto-detect where to go
			TODO: HKLM access requires elevation on Vista, but so do
				"Program Files" installs. If we want non-elevated users
				to be able to install this as smoothly (outside of the
				"Program Files" folder), we need to fall back to HKCU?
		-->
		<Property Id="INSTALLDIR">
			<RegistrySearch Id='SearchTomboyInstallDir' Type='directory' Root='HKLM' Key='Software\Tomboy' Name='InstallDir' />
		</Property>
		
		
		<Property Id="GTKSHARPNOVELLINSTALLVERSION">
			<RegistrySearch Id='GtksharpnovellRegistry' Type='raw' Root='HKLM' Key='Software\Novell\GtkSharp\Version' />
		</Property>
		<Condition Message="This setup requires Gtk# for .NET (version 2.12.8 or higher). Please download the latest installer from http://ftp.novell.com/pub/mono/gtk-sharp/ ">
			<![CDATA[GTKSHARPNOVELLINSTALLVERSION >= "2.12.8" OR (GTKSHARPNOVELLINSTALLVERSION << "2.12.1" AND GTKSHARPNOVELLINSTALLVERSION <> "2.12.1") OR REMOVE ~= "ALL"]]>
		</Condition>
		<Condition Message='This setup requires the .NET Framework 2.0 or higher.'>
			<![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]>
		</Condition>

		
		<PropertyRef Id="NETFRAMEWORK35"/>
		<Condition Message="This application requires .NET Framework 3.5. Please install the .NET Framework then run this installer again.">
			<![CDATA[Installed OR NETFRAMEWORK35]]>
		</Condition>


		<Feature ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" 
					Id="TomboyNotes"
		         Title="Tomboy Notes"
		         Description="Take notes, link ideas, and stay organized."
		         Level="1">
		         <ComponentRef Id="TomboyCore"/>
		         <ComponentRef Id="INSTALLDIR"/>
		         <ComponentRef Id="Note_newPng"/>
		         <ComponentRef Id="TomboyPng"/>
		         <ComponentRef Id="Pin_activePng"/>
		         <ComponentRef Id="Pin_downPng"/>
		         <ComponentRef Id="Pin_upPng"/>
		         <ComponentRef Id="Filter_note_allPng"/>
		         <ComponentRef Id="Filter_note_unfiledPng"/>
		         <ComponentRef Id="AppsTomboyPng"/>
		         <ComponentRef Id="NotePng"/>
		         <ComponentRef Id="NotebookPng"/>
		         <ComponentRef Id="AppsTomboyPng1"/>
		         <ComponentRef Id="AppsTomboyPng2"/>
		         <ComponentRef Id="Notebook_newPng"/>
		         <ComponentRef Id="AppsTomboyPng3"/>
		         <ComponentRef Id="TomboySvg"/>
		</Feature>
		
		<WixVariable Id="WixUIDialogBmp" Value="DlgBmp.bmp" />
		<WixVariable Id="WixUIBannerBmp" Value="BannrBmp.bmp" />
		
		<!-- 
			Using the Wix UI library
 
			WixUI_InstallDir does not allow the user to choose 
			features but adds a dialog to let the user choose a 
			directory where the product will be installed
		-->
		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
		<UIRef Id="WixUI_InstallDir"/>

		<Icon Id="Tomboy.exe" SourceFile="..\bin\Debug\Tomboy.exe" />
		
		<!-- Icon for "Add/Remove programs" entry and help link -->
		<Icon Id="icon.ico" SourceFile="..\data\icons\tomboy.ico" />
		<Property Id="ARPPRODUCTICON" Value="icon.ico" />
		<Property Id="ARPHELPLINK" Value="http://projects.gnome.org/tomboy/" />
	</Product>
</Wix>
<commit_msg>[Setup] Allow (major) upgrades, deny downgrades (fixes bug #602172)<commit_after>﻿<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
	<Product Id="*"
		Name="Tomboy Notes"
		Language="1033"
		Version="!(bind.FileVersion.Tomboy.exe)"
		UpgradeCode="4401CB77-D6D4-4903-B1F9-41E2F80DF785"
		Manufacturer="Tomboy Project">
		<Package Description="Tomboy Notes"
			Comments="Installs or upgrades Tomboy notes/"
			InstallerVersion="200"
			Compressed="yes"/>

		<Upgrade Id="4401CB77-D6D4-4903-B1F9-41E2F80DF785">
			<UpgradeVersion Minimum="0.0.13"
				IncludeMinimum="yes"
				Maximum="!(bind.FileVersion.Tomboy.exe)"
				Property="OLDERVERSIONBEINGUPGRADED" />
			<UpgradeVersion Minimum="!(bind.FileVersion.Tomboy.exe)"
				OnlyDetect="yes"
				Property="NEWERVERSIONDETECTED" />
		</Upgrade>
		<Condition Message="A later version of [ProductName] is already installed.&#xD;&#xA;If you intend to downgrade, please remove the other version first.">
			NOT NEWERVERSIONDETECTED OR Installed
		</Condition>

		<InstallExecuteSequence>
			<RemoveExistingProducts After="InstallExecute"/>
		</InstallExecuteSequence>

		<!--
			Source media for the installation. 
 			Specifies a single cab file to be embedded in the installer's .msi. 
		-->
		<Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/>
		
		<!-- Installation directory and files are defined in Files.wxs -->
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramMenuFolder" Name="Programs" />
			<Directory Id="DesktopFolder" Name="Desktop" />
		</Directory>

		<!--
			The install directory will be stored in the registry 
			this way, future "upgrades" can auto-detect where to go
			TODO: HKLM access requires elevation on Vista, but so do
				"Program Files" installs. If we want non-elevated users
				to be able to install this as smoothly (outside of the
				"Program Files" folder), we need to fall back to HKCU?
		-->
		<Property Id="INSTALLDIR">
			<RegistrySearch Id='SearchTomboyInstallDir' Type='directory' Root='HKLM' Key='Software\Tomboy' Name='InstallDir' />
		</Property>
		
		
		<Property Id="GTKSHARPNOVELLINSTALLVERSION">
			<RegistrySearch Id='GtksharpnovellRegistry' Type='raw' Root='HKLM' Key='Software\Novell\GtkSharp\Version' />
		</Property>
		<Condition Message="This setup requires Gtk# for .NET (version 2.12.8 or higher). Please download the latest installer from http://ftp.novell.com/pub/mono/gtk-sharp/ ">
			<![CDATA[GTKSHARPNOVELLINSTALLVERSION >= "2.12.8" OR (GTKSHARPNOVELLINSTALLVERSION << "2.12.1" AND GTKSHARPNOVELLINSTALLVERSION <> "2.12.1") OR REMOVE ~= "ALL"]]>
		</Condition>
		<Condition Message='This setup requires the .NET Framework 2.0 or higher.'>
			<![CDATA[MsiNetAssemblySupport >= "2.0.50727"]]>
		</Condition>

		
		<PropertyRef Id="NETFRAMEWORK35"/>
		<Condition Message="This application requires .NET Framework 3.5. Please install the .NET Framework then run this installer again.">
			<![CDATA[Installed OR NETFRAMEWORK35]]>
		</Condition>


		<Feature ConfigurableDirectory="INSTALLDIR" TypicalDefault="install" 
					Id="TomboyNotes"
		         Title="Tomboy Notes"
		         Description="Take notes, link ideas, and stay organized."
		         Level="1">
		         <ComponentRef Id="TomboyCore"/>
		         <ComponentRef Id="INSTALLDIR"/>
		         <ComponentRef Id="Note_newPng"/>
		         <ComponentRef Id="TomboyPng"/>
		         <ComponentRef Id="Pin_activePng"/>
		         <ComponentRef Id="Pin_downPng"/>
		         <ComponentRef Id="Pin_upPng"/>
		         <ComponentRef Id="Filter_note_allPng"/>
		         <ComponentRef Id="Filter_note_unfiledPng"/>
		         <ComponentRef Id="AppsTomboyPng"/>
		         <ComponentRef Id="NotePng"/>
		         <ComponentRef Id="NotebookPng"/>
		         <ComponentRef Id="AppsTomboyPng1"/>
		         <ComponentRef Id="AppsTomboyPng2"/>
		         <ComponentRef Id="Notebook_newPng"/>
		         <ComponentRef Id="AppsTomboyPng3"/>
		         <ComponentRef Id="TomboySvg"/>
		</Feature>
		
		<WixVariable Id="WixUIDialogBmp" Value="DlgBmp.bmp" />
		<WixVariable Id="WixUIBannerBmp" Value="BannrBmp.bmp" />
		
		<!-- 
			Using the Wix UI library
 
			WixUI_InstallDir does not allow the user to choose 
			features but adds a dialog to let the user choose a 
			directory where the product will be installed
		-->
		<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
		<UIRef Id="WixUI_InstallDir"/>

		<Icon Id="Tomboy.exe" SourceFile="..\bin\Debug\Tomboy.exe" />
		
		<!-- Icon for "Add/Remove programs" entry and help link -->
		<Icon Id="icon.ico" SourceFile="..\data\icons\tomboy.ico" />
		<Property Id="ARPPRODUCTICON" Value="icon.ico" />
		<Property Id="ARPHELPLINK" Value="http://projects.gnome.org/tomboy/" />
	</Product>
</Wix>

{'fraction_non_alphanumeric': 0.1373502147863441, 'fraction_numerical': 0.0196699073027357, 'mean_word_length': 3.6416579223504724, 'pattern_counts': {'":': 0, '<': 136, '<?xml version=': 2, '>': 136, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1148595', 'n_tokens_mistral': 3349, 'n_tokens_neox': 2808, 'n_words': 680}