annotate deploy/win64/sonic-visualiser.wxs.in @ 2448:119588c42772

Generate the WXS files from templated inputs, substituting in the version and redistributable paths; also include OpenSSL libraries in the package, fixing #1895 Windows build fails to open https locations
author Chris Cannam
date Tue, 14 Jan 2020 13:23:04 +0000
parents deploy/win64/sonic-visualiser.wxs@699c82029b52
children 1799e90689b5
rev   line source
Chris@626 1 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
Chris@626 2
Chris@2448 3 @W@
Chris@2448 4
Chris@626 5 <Product
Chris@626 6 Name="Sonic Visualiser"
Chris@626 7 Id="*"
Chris@626 8 Language="1033"
Chris@626 9 Codepage="1252"
Chris@2448 10 Version="@VERSION@"
Chris@626 11 UpgradeCode="D476941E-65F3-4962-9E72-B40FAAE5DBD0"
Chris@626 12 Manufacturer="Queen Mary, University of London">
Chris@626 13
Chris@626 14 <Package
Chris@626 15 Id="*"
Chris@626 16 Keywords="Installer"
Chris@1497 17 Description="Sonic Visualiser 64-bit Installer"
Chris@2448 18 Comments="Copyright (c) 2020 Queen Mary, University of London and others."
Chris@626 19 Manufacturer="Queen Mary, University of London"
Chris@1498 20 InstallerVersion="200"
Chris@626 21 Languages="1033"
Chris@626 22 Compressed="yes"
Chris@1498 23 Platform="x64"
Chris@626 24 SummaryCodepage="1252"/>
Chris@626 25
Chris@626 26 <MajorUpgrade DowngradeErrorMessage="A later version of Sonic Visualiser is already installed. Setup will now exit."/>
Chris@626 27
Chris@626 28 <Media Id="1" Cabinet="SonicVisualiser.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1"/>
Chris@626 29 <Property Id="DiskPrompt" Value="Sonic Visualiser Installation [1]"/>
Chris@626 30
Chris@626 31 <Directory Id="TARGETDIR" Name="SourceDir">
Chris@1497 32
Chris@1497 33 <Directory Id="ProgramFiles64Folder" Name="PFiles64">
Chris@1497 34 <Directory Id="VampPlugins" Name="Vamp Plugins">
Chris@1498 35 <Component Win64="yes"
Chris@1497 36 Id="VampPlugins"
Chris@1497 37 Guid="528C7D7E-5A06-4E7D-89BB-7C16431DF82F">
Chris@1497 38 <File
Chris@1497 39 Id="VampREADME"
Chris@1497 40 Name="README.txt"
Chris@1827 41 Source="..\deploy\win64\README-Vamp.txt"/>
Chris@1497 42 </Component>
Chris@1497 43 </Directory>
Chris@1497 44
Chris@626 45 <Directory Id="APPLICATIONFOLDER" Name="Sonic Visualiser">
Chris@1839 46
Chris@1498 47 <Component Win64="yes"
Chris@1497 48 Id="MainExecutable"
Chris@1497 49 Guid="65E1EBDF-4C8F-47B8-BCD6-981667F5946D">
Chris@1497 50
Chris@1497 51 <File
Chris@1497 52 Id="SVExecutable"
Chris@1497 53 Name="Sonic Visualiser.exe"
Chris@1497 54 Source="release\Sonic Visualiser.exe"
Chris@1497 55 KeyPath="yes">
Chris@1497 56
Chris@1497 57 <Shortcut
Chris@1497 58 Id="SVStartEntry"
Chris@1497 59 Directory="ProgramMenuDir"
Chris@1497 60 Name="Sonic Visualiser"
Chris@1497 61 WorkingDirectory="APPLICATIONFOLDER"
Chris@1497 62 Icon="winicon.ico"
Chris@1497 63 IconIndex="0"
Chris@1497 64 Advertise="yes"/>
Chris@1497 65
Chris@1497 66 <Shortcut
Chris@1497 67 Id="SVDesktop"
Chris@1497 68 Directory="DesktopFolder"
Chris@1497 69 Name="Sonic Visualiser"
Chris@1497 70 WorkingDirectory="APPLICATIONFOLDER"
Chris@1497 71 Icon="winicon.ico"
Chris@1497 72 IconIndex="0"
Chris@1497 73 Advertise="yes"/>
Chris@1497 74 </File>
Chris@1497 75
Chris@1497 76 <File
Chris@1497 77 Id="COPYING"
Chris@1497 78 Name="COPYING.txt"
Chris@1827 79 Source="..\COPYING"/>
Chris@1497 80 <File
Chris@1497 81 Id="README"
Chris@1497 82 Name="README.txt"
Chris@1827 83 Source="..\README.md"/>
Chris@1497 84 <File
Chris@1497 85 Id="CHANGELOG"
Chris@1497 86 Name="CHANGELOG.txt"
Chris@1827 87 Source="..\CHANGELOG"/>
Chris@2216 88 <File
Chris@2216 89 Id="CITATION"
Chris@2216 90 Name="CITATION.txt"
Chris@2216 91 Source="..\CITATION"/>
Chris@1497 92
Chris@1497 93 <File
Chris@1497 94 Id="winicon.ico"
Chris@1497 95 Name="sv-winicon.ico"
Chris@1827 96 Source="..\icons\sv-winicon.ico"/>
Chris@1497 97 </Component>
Chris@1497 98
Chris@1498 99 <Component Win64="yes"
Chris@1497 100 Id="SVFileAssociation"
Chris@1497 101 Guid="F07C5CC1-0209-4C1A-8D52-C40B50A2B964">
Chris@626 102
Chris@1839 103 <CreateFolder/>
Chris@1839 104
Chris@1497 105 <ProgId
Chris@626 106 Id='SonicVisualiser.svfile'
Chris@626 107 Description='Sonic Visualiser project file'
Chris@626 108 Icon="SVExecutable">
Chris@1497 109 <Extension
Chris@626 110 Id='sv'
Chris@626 111 ContentType='application/sonicvisualiser'>
Chris@1497 112 <Verb
Chris@626 113 Id='open'
Chris@626 114 Command='Open'
Chris@626 115 TargetFile='SVExecutable'
Chris@626 116 Argument='"%1"' />
Chris@1497 117 </Extension>
Chris@1497 118 </ProgId>
Chris@1497 119
Chris@1497 120 </Component>
Chris@1497 121
Chris@1498 122 <Component Win64="yes"
Chris@1497 123 Id="Qt5"
Chris@1497 124 Guid="5495ED5E-939A-4BE8-9000-D55F2A7A2E90">
Chris@1497 125 <File
Chris@1497 126 Id="QtCore"
Chris@1497 127 Name="Qt5Core.dll"
Chris@1497 128 Source="release\Qt5Core.dll"
Chris@1497 129 KeyPath="yes"/>
Chris@1497 130 <File
Chris@1497 131 Id="QtGui"
Chris@1497 132 Name="Qt5Gui.dll"
Chris@1497 133 Source="release\Qt5Gui.dll"/>
Chris@1497 134 <File
Chris@1497 135 Id="QtNetwork"
Chris@1497 136 Name="Qt5Network.dll"
Chris@1497 137 Source="release\Qt5Network.dll"/>
Chris@1497 138 <File
Chris@1497 139 Id="QtWidgets"
Chris@1497 140 Name="Qt5Widgets.dll"
Chris@1497 141 Source="release\Qt5Widgets.dll"/>
Chris@1497 142 <File
Chris@1497 143 Id="QtXml"
Chris@1497 144 Name="Qt5Xml.dll"
Chris@1497 145 Source="release\Qt5Xml.dll"/>
Chris@1497 146 <File
Chris@1497 147 Id="QtSvg"
Chris@1497 148 Name="Qt5Svg.dll"
Chris@1497 149 Source="release\Qt5Svg.dll"/>
Chris@1497 150 </Component>
Chris@1498 151
Chris@1503 152 <Component Win64="yes"
Chris@1503 153 Id="Sndfile"
Chris@1503 154 Guid="04533516-6460-4155-A0D4-E9BA4D31E95C">
Chris@1503 155 <File
Chris@1503 156 Id="libsndfile"
Chris@1503 157 Name="libsndfile-1.dll"
Chris@1827 158 Source="..\sv-dependency-builds\win64-msvc\lib\libsndfile-1.dll"
Chris@1503 159 KeyPath="yes"/>
Chris@1503 160 </Component>
Chris@1498 161
Chris@1498 162 <Component Win64="yes"
Chris@2448 163 Id="OpenSSL"
Chris@2448 164 Guid="d015dbb1-df5f-49da-a30a-1c46f3e58915">
Chris@2448 165 <File
Chris@2448 166 Id="libssl"
Chris@2448 167 Name="libssl-1_1-x64.dll"
Chris@2448 168 Source="C:\OpenSSL-v111-Win64\bin\libssl-1_1-x64.dll"
Chris@2448 169 KeyPath="yes"/>
Chris@2448 170 <File
Chris@2448 171 Id="libcrypto"
Chris@2448 172 Name="libcrypto-1_1-x64.dll"
Chris@2448 173 Source="c:\OpenSSL-v111-Win64\bin\libcrypto-1_1-x64.dll"/>
Chris@2448 174 </Component>
Chris@2448 175
Chris@2448 176 <Component Win64="yes"
Chris@1498 177 Id="VCRuntime"
Chris@1498 178 Guid="251D9513-BBD2-47CF-BE78-EF79446F7683">
Chris@1981 179
Chris@1981 180 <!-- Redistributables are handled by the Visual Studio
Chris@1981 181 installer (a separate program from VS itself) and are
Chris@1981 182 installed into C:\Program Files (x86)\Microsoft
Chris@2415 183 Visual Studio\2019\Community\VC\Redist\MSVC\... NB
Chris@1981 184 this is not the same thing as the Windows SDKs, which
Chris@1981 185 consist of build tools etc - they have their own
Chris@1981 186 installers and get installed by default to C:\Program
Chris@1981 187 Files (x86)\Windows Kits\... -->
Chris@1981 188
Chris@2397 189 <File
Chris@2397 190 Id="concrt140"
Chris@2397 191 Name="concrt140.dll"
Chris@2448 192 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\concrt140.DLL"
Chris@2397 193 KeyPath="yes"/>
Chris@2397 194 <File
Chris@2397 195 Id="msvcp140"
Chris@2397 196 Name="msvcp140.dll"
Chris@2448 197 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\msvcp140.DLL"/>
Chris@2397 198 <File
Chris@2397 199 Id="vccorlib140"
Chris@2397 200 Name="vccorlib140.dll"
Chris@2448 201 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vccorlib140.DLL"/>
Chris@2397 202 <File
Chris@2397 203 Id="vcruntime140"
Chris@2397 204 Name="vcruntime140.dll"
Chris@2448 205 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vcruntime140.DLL"/>
Chris@2407 206 <File
Chris@2407 207 Id="vcruntime140_1"
Chris@2407 208 Name="vcruntime140_1.dll"
Chris@2448 209 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vcruntime140_1.DLL"/>
Chris@1498 210 </Component>
Chris@1498 211
Chris@1497 212 <Directory Id="Platforms" Name="platforms">
Chris@1498 213 <Component Win64="yes"
Chris@1497 214 Id="Qt5PlatformPlugins"
Chris@1497 215 Guid="1FFB773E-6D6D-4C0E-832B-F0FFEA959CA5">
Chris@1497 216 <File
Chris@1497 217 Id="qminimal"
Chris@1497 218 Name="qminimal.dll"
Chris@1497 219 Source="release\qminimal.dll"/>
Chris@1497 220 <File
Chris@1497 221 Id="qwindows"
Chris@1497 222 Name="qwindows.dll"
Chris@1497 223 Source="release\qwindows.dll"/>
Chris@1896 224 </Component>
Chris@1896 225 </Directory>
Chris@1896 226
Chris@1896 227 <Directory Id="Styles" Name="styles">
Chris@1896 228 <Component Win64="yes"
Chris@1896 229 Id="Qt5StylePlugins"
Chris@1896 230 Guid="7A676FC1-B139-432C-A7D3-F33984934B79">
Chris@1891 231 <File
Chris@1891 232 Id="qwindowsvistastyle"
Chris@1891 233 Name="qwindowsvistastyle.dll"
Chris@1891 234 Source="release\qwindowsvistastyle.dll"/>
Chris@626 235 </Component>
Chris@1497 236 </Directory>
Chris@1497 237
Chris@1497 238 <Directory Id="Helpers" Name="helpers">
Chris@1498 239 <Component Win64="yes"
Chris@1497 240 Id="Piper64"
Chris@1497 241 Guid="6385BD86-A5D3-4C77-AD41-B2DCA5B34E48">
Chris@1497 242 <File
Chris@1497 243 Id="piperconv64"
Chris@1497 244 Name="piper-convert.exe"
Chris@1497 245 Source="release\piper-convert.exe"/>
Chris@1497 246 <File
Chris@1497 247 Id="piper64"
Chris@1497 248 Name="piper-vamp-simple-server.exe"
Chris@1497 249 Source="release\piper-vamp-simple-server.exe"/>
Chris@2163 250 <File
Chris@2163 251 Id="concrt140h"
Chris@2163 252 Name="concrt140.dll"
Chris@2448 253 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\concrt140.DLL"
Chris@2163 254 KeyPath="yes"/>
Chris@2163 255 <File
Chris@2163 256 Id="msvcp140h"
Chris@2163 257 Name="msvcp140.dll"
Chris@2448 258 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\msvcp140.DLL"/>
Chris@2163 259 <File
Chris@2163 260 Id="vccorlib140h"
Chris@2163 261 Name="vccorlib140.dll"
Chris@2448 262 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vccorlib140.DLL"/>
Chris@2163 263 <File
Chris@2163 264 Id="vcruntime140h"
Chris@2163 265 Name="vcruntime140.dll"
Chris@2448 266 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vcruntime140.DLL"/>
Chris@2409 267 <File
Chris@2409 268 Id="vcruntime140_1h"
Chris@2409 269 Name="vcruntime140_1.dll"
Chris@2448 270 Source="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\@REDIST_VER@\x64\Microsoft.VC142.CRT\vcruntime140_1.DLL"/>
Chris@1497 271 </Component>
Chris@1839 272 <Component Win64="yes"
Chris@1497 273 Id="Piper32"
Chris@1497 274 Guid="F27A00A8-DD03-45B0-A13C-8CD8CC6F7386">
Chris@1497 275 <File
Chris@1497 276 Id="piper32"
Chris@1497 277 Name="piper-vamp-simple-server-32.exe"
Chris@1827 278 Source="..\build_win32\release\piper-vamp-simple-server.exe"/>
Chris@1497 279 <File
Chris@1497 280 Id="libgcc32"
Chris@774 281 Name="libgcc_s_dw2-1.dll"
Chris@1827 282 Source="..\build_win32\release\libgcc_s_dw2-1.dll"/>
Chris@1497 283 <File
Chris@1497 284 Id="libstdcplusplus32"
Chris@626 285 Name="libstdc++-6.dll"
Chris@1827 286 Source="..\build_win32\release\libstdc++-6.dll"/>
Chris@1497 287 <File
Chris@1497 288 Id="libwinpthread32"
Chris@626 289 Name="libwinpthread-1.dll"
Chris@1827 290 Source="..\build_win32\release\libwinpthread-1.dll"/>
Chris@1497 291 </Component>
Chris@1498 292 <Component Win64="yes"
Chris@1497 293 Id="Checker64"
Chris@1497 294 Guid="19A400D9-D5B2-4CB5-AF84-7C1DEA11D7B5">
Chris@1497 295 <File
Chris@1497 296 Id="checker64"
Chris@1499 297 Name="vamp-plugin-load-checker.exe"
Chris@1499 298 Source="release\vamp-plugin-load-checker.exe"/>
Chris@1497 299 </Component>
Chris@1839 300 <Component Win64="yes"
Chris@1497 301 Id="Checker32"
Chris@1498 302 Guid="4F3FDFEC-23BD-4F2F-9B8F-9C8387FDEC21">
Chris@1497 303 <File
Chris@1497 304 Id="checker32"
Chris@1499 305 Name="vamp-plugin-load-checker-32.exe"
Chris@1827 306 Source="..\build_win32\release\vamp-plugin-load-checker.exe"/>
Chris@1497 307 </Component>
Chris@626 308
Chris@1497 309 </Directory> <!-- helpers -->
Chris@1497 310 </Directory> <!-- sv -->
Chris@1497 311 </Directory> <!-- pfiles64 -->
Chris@1498 312
Chris@1786 313 <Directory Id="ProgramFilesFolder" Name="PFiles">
Chris@1786 314 <Directory Id="Vamp32Plugins" Name="Vamp Plugins">
Chris@1786 315 <Component
Chris@1786 316 Id="Vamp32Plugins"
Chris@1786 317 Guid="62d23999-63ed-4937-b904-ec8e47a776d1">
Chris@1786 318 <File
Chris@1786 319 Id="Vamp32README"
Chris@1786 320 Name="README.txt"
Chris@1827 321 Source="..\deploy\win64\README-Vamp32.txt"/>
Chris@1786 322 </Component>
Chris@1786 323 </Directory>
Chris@1786 324 </Directory>
Chris@1786 325
Chris@626 326 <Directory Id="ProgramMenuFolder" Name="Programs">
Chris@626 327 <Directory Id="ProgramMenuDir" Name="Sonic Visualiser">
Chris@626 328 <Component Id="ProgramMenuDir" Guid="C1980FF3-D135-46F8-8542-F937748721E6">
Chris@626 329 <RemoveFolder Id="ProgramMenuDir" On="uninstall"/>
Chris@626 330 <RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" KeyPath="yes"/>
Chris@626 331 </Component>
Chris@626 332 </Directory>
Chris@626 333 </Directory>
Chris@626 334
Chris@626 335 <Directory Id="DesktopFolder" Name="Desktop"/>
Chris@626 336
Chris@626 337 </Directory>
Chris@626 338
Chris@626 339 <Feature
Chris@1497 340 Id="Complete"
Chris@1497 341 Title="Required files"
Chris@1497 342 Description="Installs the required files for running Sonic Visualiser."
Chris@1497 343 AllowAdvertise="no"
Chris@1497 344 Absent="disallow"
Chris@1497 345 ConfigurableDirectory="APPLICATIONFOLDER"
Chris@1497 346 Level="1">
Chris@626 347 <ComponentRef Id="VampPlugins"/>
Chris@626 348 <ComponentRef Id="MainExecutable"/>
Chris@626 349 <ComponentRef Id="SVFileAssociation"/>
Chris@1498 350 <ComponentRef Id="Sndfile"/>
Chris@2448 351 <ComponentRef Id="OpenSSL"/>
Chris@626 352 <ComponentRef Id="Qt5"/>
Chris@1498 353 <ComponentRef Id="VCRuntime"/>
Chris@626 354 <ComponentRef Id="Qt5PlatformPlugins"/>
Chris@1896 355 <ComponentRef Id="Qt5StylePlugins"/>
Chris@1497 356 <ComponentRef Id="Piper64"/>
Chris@1497 357 <ComponentRef Id="Piper32"/>
Chris@1497 358 <ComponentRef Id="Checker64"/>
Chris@1497 359 <ComponentRef Id="Checker32"/>
Chris@1786 360 <ComponentRef Id="Vamp32Plugins"/>
Chris@626 361 <ComponentRef Id="ProgramMenuDir"/>
Chris@626 362 </Feature>
Chris@626 363
Chris@626 364 <UI>
Chris@626 365 <UIRef Id="WixUI_InstallDir" />
Chris@626 366 <UIRef Id="WixUI_ErrorProgressText" />
Chris@626 367 </UI>
Chris@904 368
Chris@626 369 <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" />
Chris@904 370 <Property Id="WIXUI_DONTVALIDATEPATH" Value="1" />
Chris@626 371 <Property Id="ApplicationFolderName" Value="Sonic Visualiser" />
Chris@626 372 <Property Id="WixAppFolder" Value="WixPerMachineFolder" />
Chris@1827 373 <WixVariable Id="WixUILicenseRtf" Value="..\deploy\win64\License.rtf" />
Chris@626 374
Chris@1827 375 <Icon Id="winicon.ico" SourceFile="..\icons\sv-winicon.ico"/>
Chris@626 376 <Property Id="ARPPRODUCTICON" Value="winicon.ico" />
Chris@1591 377
Chris@1827 378 <WixVariable Id="WixUIBannerBmp" Value="..\deploy\win32\top.bmp"/>
Chris@1827 379 <WixVariable Id="WixUIDialogBmp" Value="..\deploy\win32\main.bmp"/>
Chris@1591 380
Chris@1981 381 </Product> </Wix>