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