blob: f2ddd0517c00d07f96ac50807beea603ab0f9796 (
plain)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util">
<!--
.NET Framework installation state properties
Official documentation can be found at the following location:
.NET Framework 4.5 - http://msdn.microsoft.com/en-us/library/5a4x27ek.aspx, http://msdn.microsoft.com/en-us/library/ee942965(v=VS.110).aspx
-->
<?define NetFx45MinRelease = 378389?>
<?define NetFx45WebLink = http://go.microsoft.com/fwlink/?LinkId=225704 ?>
<?define NetFx45RedistLink = http://go.microsoft.com/fwlink/?LinkId=225702 ?>
<Fragment>
<PropertyRef Id="WIXNETFX4RELEASEINSTALLED" />
<Property Id="WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED" Secure="yes" />
<SetProperty Id="WIX_IS_NETFRAMEWORK_45_OR_LATER_INSTALLED" Value="1" After="AppSearch">
WIXNETFX4RELEASEINSTALLED >= "#$(var.NetFx45MinRelease)"
</SetProperty>
</Fragment>
<Fragment>
<util:RegistrySearch
Id="NETFRAMEWORK45"
Variable="NETFRAMEWORK45"
Root="HKLM"
Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"
Value="Release"
Result="value" />
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45"/>
<WixVariable Id="NetFx45WebDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx45MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx45WebInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx45WebPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx45Web">
<ExePackage
InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx45FullWebLog].html""
RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx45FullWebLog].html""
UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx45FullWebLog].html""
PerMachine="yes"
DetectCondition="!(wix.NetFx45WebDetectCondition)"
InstallCondition="!(wix.NetFx45WebInstallCondition)"
Id="NetFx45Web"
Vital="yes"
Permanent="yes"
Protocol="netfx4"
DownloadUrl="$(var.NetFx45WebLink)"
LogPathVariable="NetFx45FullWebLog"
Compressed="no"
Name="!(wix.NetFx45WebPackageDirectory)dotNetFx45_Full_setup.exe">
<RemotePayload
Size="1005568"
Version="4.5.50709.17929"
ProductName="Microsoft .NET Framework 4.5"
Description="Microsoft .NET Framework 4.5 Setup"
CertificatePublicKey="BE931A1B869E4BB989C2B32D0C105204ECBEFB3D"
CertificateThumbprint="8363887511B4835B79C383ECF06FC055B5839255"
Hash="F6BA6F03C65C3996A258F58324A917463B2D6FF4"/>
</ExePackage>
</PackageGroup>
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="NETFRAMEWORK45"/>
<WixVariable Id="NetFx45RedistDetectCondition" Value="NETFRAMEWORK45 >= $(var.NetFx45MinRelease)" Overridable="yes" />
<WixVariable Id="NetFx45RedistInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="NetFx45RedistPackageDirectory" Value="redist\" Overridable="yes" />
<PackageGroup Id="NetFx45Redist">
<ExePackage
InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx45FullLog].html""
RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[NetFx45FullLog].html""
UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[NetFx45FullLog].html""
PerMachine="yes"
DetectCondition="!(wix.NetFx45RedistDetectCondition)"
InstallCondition="!(wix.NetFx45RedistInstallCondition)"
Id="NetFx45Redist"
Vital="yes"
Permanent="yes"
Protocol="netfx4"
DownloadUrl="$(var.NetFx45RedistLink)"
LogPathVariable="NetFx45FullLog"
Compressed="no"
Name="!(wix.NetFx45RedistPackageDirectory)dotNetFx45_Full_x86_x64.exe">
<RemotePayload
Size="50352408"
Version="4.5.50709.17929"
ProductName="Microsoft .NET Framework 4.5"
Description="Microsoft .NET Framework 4.5 Setup"
CertificatePublicKey="BE931A1B869E4BB989C2B32D0C105204ECBEFB3D"
CertificateThumbprint="8363887511B4835B79C383ECF06FC055B5839255"
Hash="B2FF712CA0947040CA0B8E9BD7436A3C3524BB5D"/>
</ExePackage>
</PackageGroup>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45" Secure="yes">
<RegistrySearch Id="NetFramework45" Root="HKLM" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Arabic language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_AR_SA_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45ArSaLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1025" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Chinese (Simplified) language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_ZH_CN_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45ZhCnLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\2052" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Chinese (Traditional) language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_ZH_TW_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45ZhTwLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1028" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Czech language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_CS_CZ_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45CsCzLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1029" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Danish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_DA_DK_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45DaDkLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1030" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Dutch language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_NL_NL_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45NlNlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1043" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Finnish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_FI_FI_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45FiFiLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1035" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 French language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_FR_FR_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45FrFrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1036" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 German language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_DE_DE_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45DeDeLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1031" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Greek language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_EL_GR_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45ElGrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1032" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Hebrew language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_HE_IL_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45HeIlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1037" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Hungarian language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_HU_HU_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45HuHuLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1038" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Italian language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_IT_IT_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45ItItLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1040" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Japanese language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_JA_JP_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45JaJpLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1041" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Korean language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_KO_KR_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45KoKrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1042" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Norwegian language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_NB_NO_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45NbNoLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1044" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Polish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_PL_PL_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45PlPlLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1045" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Portuguese (Brazil) language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_PT_BR_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45PtBrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1046" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Portuguese (Portugal) language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_PT_PT_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45PtPtLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\2070" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Russian language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_RU_RU_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45RuRuLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1049" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Spanish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_ES_ES_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45EsEsLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\3082" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Swedish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_SV_SE_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45SvSeLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1053" Name="Release" Type="raw" />
</Property>
</Fragment>
<!-- set to Release number of the .NET Framework 4.5 Turkish language pack if installed (not set otherwise) -->
<Fragment>
<Property Id="NETFRAMEWORK45_TR_TR_LANGPACK" Secure="yes">
<RegistrySearch Id="NETFRAMEWORK45TrTrLp" Root="HKLM" Key="Software\Microsoft\NET Framework Setup\NDP\v4\Full\1055" Name="Release" Type="raw" />
</Property>
</Fragment>
</Wix>
|