Chris@626: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
Chris@626: 
Chris@626:   <Product
Chris@626:       Name="Sonic Visualiser" 
Chris@626:       Id="*"
Chris@626:       Language="1033"
Chris@626:       Codepage="1252" 
Chris@904:       Version="2.5.0"
Chris@626:       UpgradeCode="D476941E-65F3-4962-9E72-B40FAAE5DBD0"
Chris@626:       Manufacturer="Queen Mary, University of London">
Chris@626:     
Chris@626:     <Package
Chris@626:         Id="*"
Chris@626:         Keywords="Installer"
Chris@626:         Description="Sonic Visualiser Installer" 
Chris@774:         Comments="Copyright (c) 2014 Queen Mary, University of London and others."
Chris@626:         Manufacturer="Queen Mary, University of London" 
Chris@626:         InstallerVersion="100" 
Chris@626:         Languages="1033" 
Chris@626:         Compressed="yes" 
Chris@626:         SummaryCodepage="1252"/>
Chris@626: 
Chris@626:     <MajorUpgrade DowngradeErrorMessage="A later version of Sonic Visualiser is already installed. Setup will now exit."/>
Chris@626: 
Chris@626:     <Media Id="1" Cabinet="SonicVisualiser.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1"/>
Chris@626:     <Property Id="DiskPrompt" Value="Sonic Visualiser Installation [1]"/>
Chris@626: 
Chris@626:     <Directory Id="TARGETDIR" Name="SourceDir">
Chris@626:       <Directory Id="ProgramFilesFolder" Name="PFiles">
Chris@626:         <Directory Id="VampPlugins" Name="Vamp Plugins">
Chris@626:             <Component
Chris@626:                 Id="VampPlugins"
Chris@626:                 Guid="E68E4E0B-3C63-49bd-AD2D-44431EABDA6A">
Chris@626:                 <File
Chris@626:                     Id="VampREADME"
Chris@626:                     Name="README.txt"
Chris@626:                     DiskId="1"
Chris@626:                     Source="deploy\win32\README-Vamp.txt"/>
Chris@626:             </Component>
Chris@626:         </Directory>
Chris@626:         <Directory Id="APPLICATIONFOLDER" Name="Sonic Visualiser">
Chris@626:             
Chris@626:             <Component
Chris@626:                 Id="MainExecutable"
Chris@626:                 Guid="2C02DFB7-3CDF-4F73-B9D1-846326EE417D">
Chris@626: 
Chris@626:               <File
Chris@626:                   Id="SVExecutable"
Chris@626:                   Name="Sonic Visualiser.exe"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Sonic Visualiser.exe"
Chris@626:                   KeyPath="yes">
Chris@626: 
Chris@626:                 <Shortcut
Chris@626:                     Id="SVStartEntry"
Chris@626:                     Directory="ProgramMenuDir"
Chris@626:                     Name="Sonic Visualiser"
Chris@626:                     WorkingDirectory="APPLICATIONFOLDER"
Chris@626:                     Icon="winicon.ico"
Chris@626:                     IconIndex="0"
Chris@626:                     Advertise="yes"/>
Chris@626: 
Chris@626:                 <Shortcut
Chris@626:                     Id="SVDesktop"
Chris@626:                     Directory="DesktopFolder"
Chris@626:                     Name="Sonic Visualiser"
Chris@626:                     WorkingDirectory="APPLICATIONFOLDER"
Chris@626:                     Icon="winicon.ico"
Chris@626:                     IconIndex="0"
Chris@626:                     Advertise="yes"/>
Chris@626:               </File>
Chris@626: 
Chris@626:               <File
Chris@626:                   Id="COPYING"
Chris@626:                   Name="COPYING"
Chris@626:                   DiskId="1"
Chris@626:                   Source="COPYING"/>
Chris@626:               <File
Chris@626:                   Id="README"
Chris@626:                   Name="README"
Chris@626:                   DiskId="1"
Chris@626:                   Source="README"/>
Chris@626:               <File
Chris@626:                   Id="CHANGELOG"
Chris@626:                   Name="CHANGELOG"
Chris@626:                   DiskId="1"
Chris@626:                   Source="CHANGELOG"/>
Chris@626: 
Chris@626:               <File
Chris@626:                   Id="winicon.ico"
Chris@626:                   Name="sv-winicon.ico"
Chris@626:                   DiskId="1"
Chris@626:                   Source="icons/sv-winicon.ico"/>
Chris@626:             </Component>
Chris@626:             
Chris@626:             <Component
Chris@626:               Id="SVFileAssociation"
Chris@626:               Guid="DC6B3DD1-46DE-47FC-90FB-D8ACD5D1A88A">
Chris@626:               
Chris@626:               <ProgId 
Chris@626:                 Id='SonicVisualiser.svfile' 
Chris@626:                 Description='Sonic Visualiser project file'
Chris@626:                 Icon="SVExecutable">
Chris@626:                 <Extension 
Chris@626:                   Id='sv' 
Chris@626:                   ContentType='application/sonicvisualiser'>
Chris@626:                   <Verb 
Chris@626:                     Id='open' 
Chris@626:                     Command='Open' 
Chris@626:                     TargetFile='SVExecutable' 
Chris@626:                     Argument='"%1"' />
Chris@626:                 </Extension>
Chris@626:               </ProgId>
Chris@626:               
Chris@626:             </Component>
Chris@626:             
Chris@626:             <Component
Chris@626:                 Id="Qt5"
Chris@626:                 Guid="316341D4-B7B2-411D-BCCE-879A11D5709F">
Chris@626:               <File
Chris@626:                   Id="QtCore"
Chris@626:                   Name="Qt5Core.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Qt5Core.dll"
Chris@626: 		  KeyPath="yes"/>
Chris@626:               <File
Chris@626:                   Id="QtGui"
Chris@626:                   Name="Qt5Gui.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Qt5Gui.dll"/>
Chris@626:               <File
Chris@626:                   Id="QtNetwork"
Chris@626:                   Name="Qt5Network.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Qt5Network.dll"/>
Chris@626:               <File
Chris@626:                   Id="QtWidgets"
Chris@626:                   Name="Qt5Widgets.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Qt5Widgets.dll"/>
Chris@626:               <File
Chris@626:                   Id="QtXml"
Chris@626:                   Name="Qt5Xml.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\Qt5Xml.dll"/>
Chris@626:               <File
Chris@904:                   Id="icudt53"
Chris@904:                   Name="icudt53.dll"
Chris@626:                   DiskId="1"
Chris@904:                   Source="release\icudt53.dll"/>
Chris@626:               <File
Chris@904:                   Id="icuin53"
Chris@904:                   Name="icuin53.dll"
Chris@626:                   DiskId="1"
Chris@904:                   Source="release\icuin53.dll"/>
Chris@626:               <File
Chris@904:                   Id="icuuc53"
Chris@904:                   Name="icuuc53.dll"
Chris@626:                   DiskId="1"
Chris@904:                   Source="release\icuuc53.dll"/>
Chris@626:               <File
Chris@626:                   Id="libgcc"
Chris@774:                   Name="libgcc_s_dw2-1.dll"
Chris@626:                   DiskId="1"
Chris@774:                   Source="release\libgcc_s_dw2-1.dll"/>
Chris@626:               <File
Chris@626:                   Id="libstdcplusplus"
Chris@626:                   Name="libstdc++-6.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\libstdc++-6.dll"/>
Chris@626:               <File
Chris@626:                   Id="libwinpthread"
Chris@626:                   Name="libwinpthread-1.dll"
Chris@626:                   DiskId="1"
Chris@626:                   Source="release\libwinpthread-1.dll"/>
Chris@626:             </Component>
Chris@626: 	    
Chris@626: 	    <Directory Id="Platforms" Name="platforms">
Chris@626:               <Component
Chris@626:                   Id="Qt5PlatformPlugins"
Chris@626:                   Guid="1EDCEA4B-C83F-430B-B09D-CB113DFD4E77">
Chris@626: 		<File
Chris@626:                     Id="qminimal"
Chris@626:                     Name="qminimal.dll"
Chris@626:                     DiskId="1"
Chris@626:                     Source="release\qminimal.dll"/>
Chris@626: 		<File
Chris@626:                     Id="qwindows"
Chris@626:                     Name="qwindows.dll"
Chris@626:                     DiskId="1"
Chris@626:                     Source="release\qwindows.dll"/>
Chris@626:               </Component>
Chris@626: 	    </Directory>
Chris@626: 
Chris@626:         </Directory>
Chris@626:       </Directory>
Chris@626:       
Chris@626:       <Directory Id="ProgramMenuFolder" Name="Programs">
Chris@626:         <Directory Id="ProgramMenuDir" Name="Sonic Visualiser">
Chris@626:           <Component Id="ProgramMenuDir" Guid="C1980FF3-D135-46F8-8542-F937748721E6">
Chris@626:             <RemoveFolder Id="ProgramMenuDir" On="uninstall"/>
Chris@626:             <RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" KeyPath="yes"/>
Chris@626:           </Component>
Chris@626:         </Directory>
Chris@626:       </Directory>
Chris@626: 
Chris@626:       <Directory Id="DesktopFolder" Name="Desktop"/>
Chris@626: 
Chris@626:     </Directory>
Chris@626: 
Chris@626:     <Feature 
Chris@626:       Id="Complete"
Chris@626:       Title="Required files"
Chris@626:       Description="Installs the required files for running Sonic Visualiser."
Chris@626:       AllowAdvertise="no"
Chris@626:       Absent="disallow"
Chris@626:       ConfigurableDirectory="APPLICATIONFOLDER"
Chris@626:       Level="1">
Chris@626:       <ComponentRef Id="VampPlugins"/>
Chris@626:       <ComponentRef Id="MainExecutable"/>
Chris@626:       <ComponentRef Id="SVFileAssociation"/>
Chris@626:       <ComponentRef Id="Qt5"/>
Chris@626:       <ComponentRef Id="Qt5PlatformPlugins"/>
Chris@626:       <ComponentRef Id="ProgramMenuDir"/>
Chris@626:     </Feature>
Chris@626: 
Chris@626:     <UI>
Chris@626:       <UIRef Id="WixUI_InstallDir" />
Chris@626:       <UIRef Id="WixUI_ErrorProgressText" />
Chris@626:     </UI>
Chris@904: 
Chris@626:     <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
Chris@904:     <Property Id="WIXUI_DONTVALIDATEPATH" Value="1" />
Chris@626:     <Property Id="ApplicationFolderName" Value="Sonic Visualiser" />
Chris@626:     <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
Chris@626:     <WixVariable Id="WixUILicenseRtf" Value="License.rtf" />
Chris@626:     
Chris@626:     <Icon Id="winicon.ico" SourceFile="icons/sv-winicon.ico"/>
Chris@626:     <Property Id="ARPPRODUCTICON" Value="winicon.ico" />
Chris@626:         
Chris@626:   </Product>
Chris@626: </Wix>
Chris@626: