-
Notifications
You must be signed in to change notification settings - Fork 47
/
libdigidocpp.wxs
125 lines (112 loc) · 4.81 KB
/
libdigidocpp.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?if $(sys.BUILDARCH) = x64 ?>
<?define UpgradeCode = "{93985BBA-6B59-443B-80C8-BA987407F8B8}" ?>
<?define OpenSSLSuffix = "-x64" ?>
<?elseif $(sys.BUILDARCH) = arm64 ?>
<?define UpgradeCode = "{de2f0796-01fe-4291-bfc1-c01f631d082b}" ?>
<?define OpenSSLSuffix = "-arm64" ?>
<?else?>
<?define UpgradeCode = "{7f1b1519-b527-4130-998d-233f4d050f14}" ?>
<?define OpenSSLSuffix = "" ?>
<?endif?>
<?if $(env.VisualStudioVersion) = "17.0" ?>
<?define VCVER = "143" ?>
<?elseif $(env.VisualStudioVersion) = "16.0" ?>
<?define VCVER = "142" ?>
<?endif?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"
xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Name="Libdigidocpp $(sys.BUILDARCH)" UpgradeCode="$(var.UpgradeCode)"
Language="1033" Version="!(bind.FileVersion.digidocpp)" Manufacturer="RIA" InstallerVersion="500">
<MediaTemplate EmbedCab="yes" CompressionLevel="high" />
<Icon Id="ID.ico" SourceFile="$(var.ICON)" />
<Property Id="ARPPRODUCTICON" Value="ID.ico" />
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage=
"A newer version of [ProductName] is already installed. If you are trying to downgrade, please uninstall the newer version first." />
<UI>
<ui:WixUI Id="WixUI_Mondo" />
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="SetupTypeDlg" Order="3" />
<Publish Dialog="SetupTypeDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3" />
</UI>
<StandardDirectory Id="ProgramFiles6432Folder">
<Directory Id="INSTALLFOLDER" Name="libdigidocpp" />
</StandardDirectory>
<ComponentGroup Id="Runtime"
Source="$(env.VCTOOLSREDISTDIR)\$(sys.BUILDARCH)\Microsoft.VC$(var.VCVER).CRT">
<File Name="msvcp140.dll" />
<File Name="vcruntime140.dll" />
<?if $(sys.BUILDARCH) != x86 ?>
<File Name="vcruntime140_1.dll" />
<?endif?>
</ComponentGroup>
<ComponentGroup Id="Dependencies" Source="$(var.vcpkg)\bin">
<File Name="libcrypto-3$(var.OpenSSLSuffix).dll" />
<File Name="libssl-3$(var.OpenSSLSuffix).dll" />
<File Name="legacy.dll" />
<File Name="zlib1.dll" />
<File Name="libxml2.dll" />
<File Name="libxmlsec1.dll" />
<File Name="libxmlsec1-openssl.dll" />
</ComponentGroup>
<ComponentGroup Id="Libraries" Source="$(var.libdigidocpp)\bin">
<File Id="digidocpp" Name="digidocpp.dll" />
<File Name="digidoc-tool.exe" />
<File Source="$(var.libdigidocpp)\etc\digidocpp\digidocpp.conf" />
<?ifdef var.swig ?>
<File Name="digidoc_csharp.dll" />
<File Name="digidoc_java.dll" />
<File Name="_digidoc_python.pyd" />
<File Name="digidoc.py" />
<?endif?>
</ComponentGroup>
<ComponentGroup Id="RuntimeDev"
Source="$(env.VCTOOLSREDISTDIR)\Debug_NonRedist\$(sys.BUILDARCH)\Microsoft.VC$(var.VCVER).DebugCRT">
<File Name="msvcp140d.dll" />
<File Name="vcruntime140d.dll" />
<?if $(sys.BUILDARCH) != x86 ?>
<File Name="vcruntime140_1d.dll" />
<?endif?>
</ComponentGroup>
<ComponentGroup Id="DependenciesDev" Source="$(var.vcpkg)\debug\bin">
<File Name="zlibd1.dll" />
</ComponentGroup>
<ComponentGroup Id="LibrariesDev" Source="$(var.libdigidocpp)\bin">
<Files Include="*.pdb" />
<File Name="digidocpp.lib" />
<File Name="digidocppd.dll" />
<File Name="digidocppd.lib" />
<?ifdef var.swig ?>
<File Name="digidoc_csharpd.dll" />
<File Name="digidoc_javad.dll" />
<File Name="_digidoc_pythond.pyd" />
<?endif?>
</ComponentGroup>
<ComponentGroup Id="Schemas" Directory="INSTALLFOLDER" Subdirectory="schema">
<Files Include="$(var.libdigidocpp)\etc\digidocpp\schema\*.xsd" />
</ComponentGroup>
<ComponentGroup Id="Headers" Directory="INSTALLFOLDER" Subdirectory="include">
<Files Include="$(var.libdigidocpp)\include\**" />
</ComponentGroup>
<?ifdef var.docLocation ?>
<ComponentGroup Id="Documentation" Directory="INSTALLFOLDER" Subdirectory="documentation">
<Files Include="$(var.docLocation)\**" />
</ComponentGroup>
<?endif?>
<Feature Id="InstallLibdigidocpp" Level="1" Title="Libdigidocpp" Display="expand" ConfigurableDirectory="INSTALLFOLDER">
<ComponentGroupRef Id="Runtime" />
<ComponentGroupRef Id="Dependencies" />
<ComponentGroupRef Id="Libraries" />
<ComponentGroupRef Id="Schemas" />
<Feature Id="InstallDevel" Level="1" Title="Development">
<ComponentGroupRef Id="Headers" />
<ComponentGroupRef Id="RuntimeDev" />
<ComponentGroupRef Id="DependenciesDev" />
<ComponentGroupRef Id="LibrariesDev" />
</Feature>
<?ifdef var.docLocation ?>
<Feature Id="InstallDocumentation" Level="1" Title="Documentation">
<ComponentGroupRef Id="Documentation" />
</Feature>
<?endif?>
</Feature>
</Package>
</Wix>