-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.wxs
72 lines (68 loc) · 3.98 KB
/
installer.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?if $(var.Platform) = x64 ?>
<?define ProductUpgradeCode = "C64C0035-D28C-407D-847C-8C9DAFB7573D" ?>
<?define Win64 = "yes" ?>
<?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?define QtDir = "C:\Qt\5.1.1\msvc2012_64" ?>
<?define BuildDir = "..\build-qnv-Desktop_Qt_5_1_1_MSVC2012_64bit-Release\release" ?>
<?define CRTMergeModule = "C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC110_CRT_x64.msm" ?>
<?else ?>
<?define ProductUpgradeCode = "70F1E7D6-2E97-460C-AD9C-0E9BB381DF37" ?>
<?define Win64 = "no" ?>
<?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?define QtDir = "C:\Qt\5.1.1\msvc2012" ?>
<?define BuildDir = "..\build-qnv-Desktop_Qt_5_1_1_MSVC2012_32bit-Release\release" ?>
<?define CRTMergeModule = "C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC110_CRT_x86.msm" ?>
<?endif ?>
<Product Id="*" UpgradeCode="$(var.ProductUpgradeCode)"
Name="QNV" Version="$(var.Version)" Manufacturer="Phil Wise" Language="1033">
<Package InstallerVersion="405" Compressed="yes" Comments="Windows Installer Package"/>
<Media Id="1" Cabinet="product.cab" EmbedCab="yes"/>
<MajorUpgrade DowngradeErrorMessage="A later version of QNV is already installed. Setup will now exit."/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Merge Id="CRT" Language="0" SourceFile="$(var.CRTMergeModule)" DiskId="1" />
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="INSTALLDIR" Name="qnv">
<Component Id="ApplicationFiles" Guid="BFF4E436-EABA-416E-AC17-EDF5E5D513C3" Win64="$(var.Win64)">
<File Id="qnvexe" Source="$(var.BuildDir)\qnv.exe"/>
<File Id="qt5coredll" Source="$(var.QtDir)\bin\Qt5Core.dll"/>
<File Id="qt5guidll" Source="$(var.QtDir)\bin\Qt5Gui.dll"/>
<File Id="qt5multimediadll" Source="$(var.QtDir)\bin\Qt5Multimedia.dll"/>
<File Id="qt5widgetsdll" Source="$(var.QtDir)\bin\Qt5Widgets.dll"/>
<File Id="icuin51dll" Source="$(var.QtDir)\bin\icuin51.dll"/>
<File Id="icuuc51dll" Source="$(var.QtDir)\bin\icuuc51.dll"/>
<File Id="icudt51dll" Source="$(var.QtDir)\bin\icudt51.dll"/>
<File Id="qt5networkdll" Source="$(var.QtDir)\bin\Qt5Network.dll"/>
<File Id="libglesv2dll" Source="$(var.QtDir)\bin\libGLESv2.dll"/>
<File Id="libegldll" Source="$(var.QtDir)\bin\libEGL.dll"/>
</Component>
<Directory Id="qtplatform" Name="platforms">
<Component Id="qtplatformfiles">
<File Id="qwindowsdll" Source="$(var.QtDir)\plugins\platforms\qwindows.dll"/>
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuSubfolder" Name="QNV">
<Component Id="ApplicationShortcuts" Guid="3BA01FE7-CC2F-497D-98C3-467847544834">
<Shortcut Id="ApplicationShortcut1" Name="QNV Notes" Description="A quick way to take notes"
Target="[INSTALLDIR]qnv.exe" WorkingDirectory="INSTALLDIR"/>
<RegistryValue Root="HKCU" Key="Software\Phil Wise\qnv"
Name="installed" Type="integer" Value="1" KeyPath="yes"/>
<RemoveFolder Id="ProgramMenuSubfolder" On="uninstall"/>
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="DefaultFeature" Level="1">
<ComponentRef Id="ApplicationFiles"/>
<ComponentRef Id="ApplicationShortcuts"/>
<ComponentRef Id="qtplatformfiles"/>
</Feature>
<Feature Id='CRT_WinSXS' Title='CRT WinSXS' Level='1'>
<MergeRef Id='CRT' />
</Feature>
</Product>
</Wix>