1<?xml version="1.0" encoding="utf-8"?>
2<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3
4	<?if $(env.FIO_ARCH) = x86 ?>
5		<?define ProgramDirectory = ProgramFilesFolder ?>
6	<?else?>
7		<?define ProgramDirectory = ProgramFiles64Folder ?>
8	<?endif?>
9
10	<Product Id="*"
11	  Codepage="1252" Language="1033"
12	  Manufacturer="fio" Name="fio"
13	  UpgradeCode="2338A332-5511-43CF-B9BD-5C60496CCFCC" Version="2.1.9">
14		<Package
15		  Description="Flexible IO Tester"
16		  InstallerVersion="301" Keywords="Installer,MSI,Database"
17		  Languages="1033" Manufacturer="fio"
18		  InstallScope="perMachine" InstallPrivileges="elevated" Compressed="yes"/>
19
20		<Media Id="1" Cabinet="Product.cab" EmbedCab="yes" CompressionLevel="high"/>
21
22		<Directory Id="TARGETDIR" Name="SourceDir">
23			<Directory Id="$(var.ProgramDirectory)">
24				<Directory Id="INSTALLDIR">
25					<Directory Id="fio" Name="fio">
26						<Component>
27							<File Source="..\..\fio.exe"/>
28							<Environment Action="set" Part="last" Id="PATH" Name="PATH" Value="[INSTALLDIR]fio\" System="yes"/>
29						</Component>
30						<Component>
31							<File Id="README" Name="README.txt" Source="..\..\README"/>
32						</Component>
33						<Component>
34							<File Id="REPORTING_BUGS" Name="REPORTING-BUGS.txt" Source="..\..\REPORTING-BUGS"/>
35						</Component>
36						<Component>
37							<File Id="HOWTO" Name="HOWTO.txt" Source="..\..\HOWTO"/>
38						</Component>
39						<Component>
40							<File Id="COPYING" Name="COPYING.txt" Source="..\..\COPYING"/>
41						</Component>
42						<Component>
43							<File Id="LICENSE" Name="LICENSE.txt" Source="..\..\LICENSE"/>
44						</Component>
45						<Directory Id="examples" Name="examples"/>
46					</Directory>
47				</Directory>
48			</Directory>
49	</Directory>
50
51	<Feature Id="AlwaysInstall" Absent="disallow" ConfigurableDirectory="INSTALLDIR" Display="hidden" Level="1" Title="Flexible IO Tester">
52		<ComponentRef Id="fio.exe"/>
53		<ComponentRef Id="HOWTO"/>
54		<ComponentRef Id="README"/>
55		<ComponentRef Id="REPORTING_BUGS"/>
56		<ComponentRef Id="COPYING"/>
57		<ComponentRef Id="LICENSE"/>
58		<ComponentGroupRef Id="examples"/>
59	</Feature>
60
61	<Property Id="ARPURLINFOABOUT" Value="http://git.kernel.dk/?p=fio.git" />
62	<Property Id='ARPCONTACT'>fio@vger.kernel.org</Property>
63	<Property Id='ARPHELPLINK'>http://www.spinics.net/lists/fio/</Property>
64	<Property Id='ARPURLUPDATEINFO'>http://bluestop.org/fio/</Property>
65
66	<WixVariable Id="WixUILicenseRtf" Value="eula.rtf" />
67
68	<UIRef Id="WixUI_Minimal"/>
69
70	<MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="A newer version of the application is already installed."
71                  AllowSameVersionUpgrades="yes"/>
72</Product>
73</Wix>
74