spek.wxs.in (7814B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <?define ProductName = "Spek" ?> 3 <?define Manufacturer = "Spek Project" ?> 4 <?define ProductVersion = "@VERSION@" ?> 5 <?define UpgradeCode = "46D51DDF-5749-45E2-818B-1ACADF21C0D9" ?> 6 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> 7 <Product Id="*" Name="$(var.ProductName)" Language="0" 8 Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> 9 <Package InstallerVersion="301" Compressed="yes" Platform="x86" InstallScope="perMachine"/> 10 <Media Id="1" Cabinet="spek.cab" EmbedCab="yes" CompressionLevel="high" /> 11 <Property Id="ARPPRODUCTICON" Value="ProgramIcon" /> 12 <Property Id="ARPHELPLINK" Value="http://spek.cc/" /> 13 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /> 14 <UIRef Id="SpekInstallDir" /> 15 <UIRef Id="WixUI_ErrorProgressText" /> 16 <Property Id="INSTALLSTARTMENUSHORTCUT" Value="1" /> 17 <Property Id="INSTALLDESKTOPSHORTCUT" Value="1" /> 18 <WixVariable Id="WixUIBannerBmp" Value="banner.bmp" /> 19 <WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" /> 20 <Upgrade Id="$(var.UpgradeCode)"> 21 <UpgradeVersion OnlyDetect="yes" Minimum="$(var.ProductVersion)" Property="NEWERVERSIONDETECTED" IncludeMinimum="no" /> 22 <UpgradeVersion OnlyDetect="no" Maximum="$(var.ProductVersion)" Property="OLDERVERSIONBEINGUPGRADED" IncludeMaximum="no" /> 23 </Upgrade> 24 <InstallExecuteSequence> 25 <RemoveExistingProducts After="InstallInitialize" /> 26 </InstallExecuteSequence> 27 <CustomAction Id="StartAppOnExit" FileKey="spek.exe" ExeCommand="" Execute="immediate" Impersonate ="yes" Return="asyncNoWait" /> 28 <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Launch Spek when setup exits" /> 29 <UI> 30 <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="SpekInstallDirDlg" Order="2">1</Publish> 31 <Publish Dialog="SpekInstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2">1</Publish> 32 <Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="StartAppOnExit">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish> 33 </UI> 34 <Icon Id="ProgramIcon" SourceFile="spek.ico"/> 35 <DirectoryRef Id="ProgramMenuSubfolder"> 36 <Component Id="StartMenuShortcut" Guid="165DF12B-D970-49BC-B07B-880B62ABC308"> 37 <Condition>INSTALLSTARTMENUSHORTCUT</Condition> 38 <Shortcut Id="StartMenuShortcut" Name="$(var.ProductName)" Icon="ProgramIcon" Target="[INSTALLLOCATION]spek.exe" WorkingDirectory="INSTALLLOCATION"/> 39 <Shortcut Id="UninstallProduct" Name="Uninstall $(var.ProductName)" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]"/> 40 <RemoveFolder Id="ProgramMenuSubfolder" On="uninstall"/> 41 <RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> 42 </Component> 43 </DirectoryRef> 44 <DirectoryRef Id="DesktopFolder"> 45 <Component Id="DesktopShortcut" Guid="ACCE1EDB-87E3-4FE5-B2BF-93113E767381"> 46 <Condition>INSTALLDESKTOPSHORTCUT</Condition> 47 <Shortcut Id="DesktopShortcut" Name="$(var.ProductName)" Icon="ProgramIcon" Target="[INSTALLLOCATION]spek.exe" WorkingDirectory="INSTALLLOCATION"/> 48 <RegistryValue Root="HKCU" Key="Software\$(var.Manufacturer)\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> 49 </Component> 50 </DirectoryRef> 51 52 <Directory Id="TARGETDIR" Name="SourceDir"> 53 <Directory Id="ProgramMenuFolder"> 54 <Directory Id="ProgramMenuSubfolder" Name="$(var.ProductName)"/> 55 </Directory> 56 <Directory Id="DesktopFolder" /> 57 <Directory Id="ProgramFilesFolder"> 58 <Directory Id="INSTALLLOCATION" Name="$(var.ProductName)"> 59 <Component Id="Main" Guid="CD5121AD-F799-4796-9DB8-0C24CA0A4C8E"> 60 <File Id="spek.ico" Name="spek.ico" Source="spek.ico" /> 61 <File Id="spek.exe" Name="spek.exe" Source="spek.exe" /> 62 <!-- Capabilities keys for Vista/7 "Set Program Access and Defaults" --> 63 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities" Name="ApplicationDescription" Value="Acoustic Spectrum Analyser" Type="string" /> 64 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities" Name="ApplicationIcon" Value="[#spek.ico]" Type="string" /> 65 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities" Name="ApplicationName" Value="Spek" Type="string" /> 66 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities\DefaultIcon" Value="[#spek.ico]" Type="string" /> 67 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities\shell\open\command" Value=""[INSTALLLOCATION]spek.exe" "%1"" Type="string" /> 68 <RegistryValue Root="HKLM" Key="SOFTWARE\RegisteredApplications" Name="Spek" Value="SOFTWARE\Spek\Capabilities" Type="string" /> 69 <!-- App Paths to support Start,Run -> "spek" --> 70 <RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spek.exe" Value="[INSTALLLOCATION]spek.exe" Type="string" /> 71 <RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spek.exe" Name="Path" Value="[INSTALLLOCATION]" Type="string" /> 72 <!-- Extend to the "open with" list + Win7 jump menu pinning --> 73 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe" Value="Acoustic Spectrum Analyser" Type="string" /> 74 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe" Name="FriendlyAppName" Value="Spek" Type="string" /> 75 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe\DefaultIcon" Value="[#spek.ico]" Type="string" /> 76 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe\shell\open\command" Value=""[INSTALLLOCATION]spek.exe" "%1"" Type="string" /> 77 <!-- Spek.Audio class --> 78 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio" Value="Spek Audio File" KeyPath="yes" Type="string" /> 79 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio" Name="FriendlyTypeName" Value="Spek Audio File" Type="string" /> 80 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio\DefaultIcon" Value="[#spek.ico]" Type="string" /> 81 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio\shell" Value="open" Type="string" /> 82 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Spek.Audio\shell\open\command" Value=""[INSTALLLOCATION]spek.exe" "%1"" Type="string" /> 83 <!-- Associate with file extensions --> 84 <?foreach ext in "3gp;aac,aif;aifc;aiff;amr;awb;ape;au;dts;flac;gsm;m4a;m4p;mp3;mp4;mp+;mpc;mpp;oga;ogg;opus;ra;ram;snd;wav;wma;wv"?> 85 <RegistryValue Root="HKLM" Key="SOFTWARE\Spek\Capabilities\FileAssociations" Name=".$(var.ext)" Value="Spek.Audio" Type="string" /> 86 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\Applications\spek.exe\SupportedTypes" Name=".$(var.ext)" Value="" Type="string" /> 87 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithList\spek.exe" Value="" Type="string" /> 88 <RegistryValue Root="HKLM" Key="SOFTWARE\Classes\.$(var.ext)\OpenWithProgids" Name="Spek.Audio" Value="" Type="string" /> 89 <?endforeach?> 90 </Component> 91 </Directory> 92 </Directory> 93 </Directory> 94 <Feature Id="All" Title="$(var.ProductName)" Level="1"> 95 <ComponentRef Id="Main" /> 96 <ComponentGroupRef Id="Files" /> 97 <ComponentRef Id="StartMenuShortcut" /> 98 <ComponentRef Id="DesktopShortcut" /> 99 </Feature> 100 </Product> 101 </Wix> 102