First snapshot of FIO for Windows
[fio.git] / os / windows / install.wxs
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">\r
3 \r
4   <?define VersionMajor = 1?>\r
5   <?define VersionMinor = 44?>\r
6   <?define VersionBuild = 3?>\r
7   \r
8         <Product Id="*"\r
9              Codepage="1252" Language="1033"\r
10              Manufacturer="fio" Name="FIO"\r
11              UpgradeCode="{2338a332-5511-43cf-b9bd-5c60496ccfcc}" Version="$(var.VersionMajor).$(var.VersionMinor).$(var.VersionBuild)">\r
12                 <Package \r
13                  Comments="Contact: Your local administrator"\r
14                  Description="Flexible IO Tester"\r
15                  InstallerVersion="200" Keywords="Installer,MSI,Database"\r
16                  Languages="1033" Manufacturer="fio" Platform="x86"\r
17                  InstallScope="perMachine" InstallPrivileges="elevated" Compressed="yes"/>\r
18 \r
19                 <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />\r
20 \r
21     <Directory Id="TARGETDIR" Name="SourceDir">\r
22       <Directory Id="ProgramFilesFolder" SourceName="program files">\r
23         <Directory Id="INSTALLDIR">\r
24           <Directory Id="cygwin" Name="fio">\r
25             <Directory Id="bin" Name="bin">\r
26               <Component Id="fio.exe" Location="either">\r
27                 <File Id="fio.exe" Name="fio.exe" KeyPath="yes" Source="..\..\fio.exe"/>\r
28                 <Shortcut Id="FIO_SC" Name="FIO" Description="Opens an FIO shell" Directory="ApplicationProgramsFolder" Target="[cygwin]\Cygwin.bat"/>\r
29               </Component>\r
30             </Directory>\r
31             <Directory Id="usr" Name="usr">\r
32               <Directory Id="share" Name="share">\r
33                 <Directory Id="doc" Name="doc">\r
34                   <Directory Id="fio" Name="fio">\r
35                     <Directory Id="examples" Name="examples"/>\r
36                     <Component Id="README">\r
37                       <File Id="README" Name="README.txt" KeyPath="yes" Source="..\..\README"/>\r
38                       <Shortcut Id="README_SC" Name="Readme" Description="Documentation" Directory="ApplicationProgramsFolder" Target="[#README]"/>\r
39                     </Component>\r
40                     <Component Id="REPORTING_BUGS">\r
41                       <File Id="REPORTING_BUGS" Name="REPORTING-BUGS.txt" KeyPath="yes" Source="..\..\REPORTING-BUGS"/>\r
42                       <Shortcut Id="REPORTING_BUGS_SC" Name="Reporting bugs" Description="How to report bugs in FIO" Directory="ApplicationProgramsFolder" Target="[#REPORTING_BUGS]"/>\r
43                     </Component>\r
44                     <Component Id="HOWTO">\r
45                       <File Id="HOWTO" Name="HOWTO.txt" KeyPath="yes" Source="..\..\HOWTO"/>\r
46                       <Shortcut Id="HOWTO_SC" Name="How to use FIO" Description="FIO Tutorial - how to setup FIO" Directory="ApplicationProgramsFolder" Target="[#HOWTO]"/>\r
47                     </Component>\r
48                     <Component Id="COPYING">\r
49                       <File Id="COPYING" Name="COPYING.txt" KeyPath="yes" Source="..\..\COPYING"/>\r
50                       <Shortcut Id="COPYING_SC" Name="License" Description="FIO license" Directory="ApplicationProgramsFolder" Target="[#COPYING]"/>\r
51                     </Component>\r
52                   </Directory>\r
53                 </Directory>\r
54               </Directory>\r
55             </Directory>\r
56           </Directory>\r
57         </Directory>\r
58       </Directory>\r
59       <Directory Id="ProgramMenuFolder">\r
60         <Directory Id="ApplicationProgramsFolder" Name="FIO">\r
61           <Component Id="ShortcutDir" Guid="475862c2-ae75-4325-96c8-335edb490214">\r
62             <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>\r
63             <!-- <RegistryValue Root="HKLM" Key="Software\FIO\FIO" Name="shortcuts" Type="string" Value="" KeyPath="yes"/> -->\r
64           </Component>\r
65         </Directory>\r
66       </Directory>\r
67     </Directory>\r
68 \r
69     <Feature Id="AlwaysInstall" Absent="disallow" ConfigurableDirectory="INSTALLDIR" Display="hidden" Level="1" Title="Always Install">\r
70                         <ComponentRef Id="fio.exe" />\r
71       <ComponentGroupRef Id="examples"/>\r
72       <ComponentGroupRef Id="cygwin"/>\r
73 \r
74       <ComponentRef Id="HOWTO"/>\r
75       <ComponentRef Id="README"/>\r
76       <ComponentRef Id="REPORTING_BUGS"/>\r
77       <ComponentRef Id="COPYING"/>\r
78 \r
79       <ComponentRef Id="ShortcutDir"/>\r
80                 </Feature>\r
81 \r
82                 <!-- <Property Id="ARPPRODUCTICON" Value="ARPPRODUCTICON" /> -->\r
83                 \r
84                 <Property Id="ARPURLINFOABOUT" Value="http://git.kernel.dk/?p=fio.git" />\r
85                 <Property Id='ARPCONTACT'>fio@vger.kernel.org</Property>\r
86                 <Property Id='ARPHELPLINK'>http://www.spinics.net/lists/fio/</Property>\r
87                 <Property Id='ARPURLUPDATEINFO'>http://git.kernel.dk/?p=fio.git</Property>\r
88 \r
89                 <WixVariable Id="WixUILicenseRtf" Value="eula.rtf" />\r
90 \r
91                 <UIRef Id="WixUI_Minimal"/>\r
92 \r
93     <Condition Message="Per-User installations are not supported">\r
94       Installed OR\r
95       ALLUSERS=1\r
96     </Condition>\r
97 \r
98     <MajorUpgrade AllowDowngrades="no" DowngradeErrorMessage="A newer version of the application is already installed."/>\r
99         </Product>\r
100 </Wix>