aboutsummaryrefslogtreecommitdiff
path: root/src/wixlib/UtilExtension.wxs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixlib/UtilExtension.wxs')
-rw-r--r--src/wixlib/UtilExtension.wxs430
1 files changed, 430 insertions, 0 deletions
diff --git a/src/wixlib/UtilExtension.wxs b/src/wixlib/UtilExtension.wxs
new file mode 100644
index 00000000..ac11c788
--- /dev/null
+++ b/src/wixlib/UtilExtension.wxs
@@ -0,0 +1,430 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- 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. -->
3
4
5<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
6 <?include caerr.wxi ?>
7
8 <Fragment>
9 <UI Id="ConfigureUsersErrorText">
10 <Error Id="$(var.msierrUSRFailedUserCreate)">!(loc.msierrUSRFailedUserCreate)</Error>
11 <Error Id="$(var.msierrUSRFailedUserCreatePswd)">!(loc.msierrUSRFailedUserCreatePswd)</Error>
12 <Error Id="$(var.msierrUSRFailedUserGroupAdd)">!(loc.msierrUSRFailedUserGroupAdd)</Error>
13 <Error Id="$(var.msierrUSRFailedGrantLogonAsService)">Failed to grant 'logon as service' rights to user. ([2] [3] [4] [5])</Error>
14 <Error Id="$(var.msierrUSRFailedUserCreateExists)">!(loc.msierrUSRFailedUserCreateExists)</Error>
15 </UI>
16 </Fragment>
17
18 <Fragment>
19 <UI Id="ConfigureSmbErrorsText">
20 <Error Id="$(var.msierrSMBFailedCreate)">!(loc.msierrSMBFailedCreate)</Error>
21 <Error Id="$(var.msierrSMBFailedDrop)">!(loc.msierrSMBFailedDrop)</Error>
22 </UI>
23 </Fragment>
24
25 <Fragment>
26 <UI Id="PerCounterDataErrorsText">
27 <Error Id="$(var.msierrInstallPerfCounterData)">!(loc.msierrInstallPerfCounterData)</Error>
28 <Error Id="$(var.msierrUninstallPerfCounterData)">!(loc.msierrUninstallPerfCounterData)</Error>
29 </UI>
30 </Fragment>
31
32 <Fragment>
33 <UI Id="ConfigurePerfmonErrorsText">
34 <Error Id="$(var.msierrPERFMONFailedRegisterDLL)">!(loc.msierrPERFMONFailedRegisterDLL)</Error>
35 <Error Id="$(var.msierrPERFMONFailedUnregisterDLL)">!(loc.msierrPERFMONFailedUnregisterDLL)</Error>
36 </UI>
37 </Fragment>
38
39 <Fragment>
40 <UI Id="SecureObjectsErrors">
41 <Error Id="$(var.msierrSecureObjectsFailedCreateSD)">!(loc.msierrSecureObjectsFailedCreateSD)</Error>
42 <Error Id="$(var.msierrSecureObjectsFailedSet)">!(loc.msierrSecureObjectsFailedSet)</Error>
43 <Error Id="$(var.msierrSecureObjectsUnknownType)">!(loc.msierrSecureObjectsUnknownType)</Error>
44 </UI>
45 </Fragment>
46
47 <Fragment>
48 <UI Id="XmlFileErrorsText">
49 <Error Id="$(var.msierrXmlFileFailedRead)">!(loc.msierrXmlFileFailedRead)</Error>
50 <Error Id="$(var.msierrXmlFileFailedOpen)">!(loc.msierrXmlFileFailedOpen)</Error>
51 <Error Id="$(var.msierrXmlFileFailedSelect)">!(loc.msierrXmlFileFailedSelect)</Error>
52 <Error Id="$(var.msierrXmlFileFailedSave)">!(loc.msierrXmlFileFailedSave)</Error>
53 </UI>
54 </Fragment>
55
56 <Fragment>
57 <UI Id="XmlConfigErrorsText">
58 <Error Id="$(var.msierrXmlConfigFailedRead)">!(loc.msierrXmlConfigFailedRead)</Error>
59 <Error Id="$(var.msierrXmlConfigFailedOpen)">!(loc.msierrXmlConfigFailedOpen)</Error>
60 <Error Id="$(var.msierrXmlConfigFailedSelect)">!(loc.msierrXmlConfigFailedSelect)</Error>
61 <Error Id="$(var.msierrXmlConfigFailedSave)">!(loc.msierrXmlConfigFailedSave)</Error>
62 </UI>
63 </Fragment>
64
65 <Fragment>
66 <CustomAction Id="WixFailWhenDeferred" BinaryKey="WixCA" DllEntry="WixFailWhenDeferred" Execute="deferred" Return="check" SuppressModularization="yes" />
67
68 <InstallExecuteSequence>
69 <Custom Action="WixFailWhenDeferred" Before="InstallFinalize" Overridable="yes">WIXFAILWHENDEFERRED=1 AND VersionNT &gt; 400</Custom>
70 </InstallExecuteSequence>
71 </Fragment>
72
73 <Fragment>
74 <CustomAction Id="WixWaitForEvent" BinaryKey="WixCA" DllEntry="WixWaitForEvent" Execute="immediate" Return="check" SuppressModularization="yes" />
75
76 <InstallExecuteSequence>
77 <Custom Action="WixWaitForEvent" Before="InstallFinalize" Overridable="yes" />
78 </InstallExecuteSequence>
79 </Fragment>
80
81 <Fragment>
82 <CustomAction Id="WixWaitForEventDeferred" BinaryKey="WixCA" DllEntry="WixWaitForEvent" Execute="deferred" Return="check" SuppressModularization="yes" />
83
84 <InstallExecuteSequence>
85 <Custom Action="WixWaitForEventDeferred" After="InstallInitialize" Overridable="yes" />
86 </InstallExecuteSequence>
87 </Fragment>
88
89 <Fragment>
90 <CustomAction Id="WixExitEarlyWithSuccess" BinaryKey="WixCA" DllEntry="WixExitEarlyWithSuccess" Execute="immediate" Return="check" SuppressModularization="yes" />
91
92 <InstallExecuteSequence>
93 <Custom Action="WixExitEarlyWithSuccess" After="FindRelatedProducts" Overridable="yes">NEWERVERSIONDETECTED AND VersionNT &gt; 400</Custom>
94 </InstallExecuteSequence>
95 </Fragment>
96
97 <Fragment>
98 <CustomAction Id="WixRemoveFoldersEx" BinaryKey="WixCA" DllEntry="WixRemoveFoldersEx" Execute="immediate" Return="ignore" />
99
100 <InstallExecuteSequence>
101 <Custom Action="WixRemoveFoldersEx" Before="CostInitialize" />
102 </InstallExecuteSequence>
103 </Fragment>
104
105 <Fragment>
106 <CustomAction Id="WixBroadcastSettingChange" BinaryKey="WixCA" DllEntry="WixBroadcastSettingChange" Execute="immediate" Return="ignore" SuppressModularization="yes" />
107
108 <InstallExecuteSequence>
109 <Custom Action="WixBroadcastSettingChange" After="InstallFinalize" Overridable="yes" />
110 </InstallExecuteSequence>
111 </Fragment>
112
113 <Fragment>
114 <CustomAction Id="WixBroadcastEnvironmentChange" BinaryKey="WixCA" DllEntry="WixBroadcastEnvironmentChange" Execute="immediate" Return="ignore" SuppressModularization="yes" />
115
116 <InstallExecuteSequence>
117 <Custom Action="WixBroadcastEnvironmentChange" After="InstallFinalize" Overridable="yes" />
118 </InstallExecuteSequence>
119 </Fragment>
120
121 <!-- WiX OS-detection properties and custom action -->
122 <Fragment>
123 <CustomAction Id="WixQueryOsInfo" BinaryKey="WixCA" DllEntry="WixQueryOsInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" />
124
125 <InstallExecuteSequence>
126 <Custom Action="WixQueryOsInfo" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
127 </InstallExecuteSequence>
128
129 <InstallUISequence>
130 <Custom Action="WixQueryOsInfo" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
131 </InstallUISequence>
132 </Fragment>
133
134 <Fragment>
135 <Property Id="WIX_SUITE_BACKOFFICE" Secure="yes" />
136 <CustomActionRef Id="WixQueryOsInfo" />
137 </Fragment>
138 <Fragment>
139 <Property Id="WIX_SUITE_BLADE" Secure="yes" />
140 <CustomActionRef Id="WixQueryOsInfo" />
141 </Fragment>
142 <Fragment>
143 <Property Id="WIX_SUITE_COMMUNICATIONS" Secure="yes" />
144 <CustomActionRef Id="WixQueryOsInfo" />
145 </Fragment>
146 <Fragment>
147 <Property Id="WIX_SUITE_COMPUTE_SERVER" Secure="yes" />
148 <CustomActionRef Id="WixQueryOsInfo" />
149 </Fragment>
150 <Fragment>
151 <Property Id="WIX_SUITE_DATACENTER" Secure="yes" />
152 <CustomActionRef Id="WixQueryOsInfo" />
153 </Fragment>
154 <Fragment>
155 <Property Id="WIX_SUITE_EMBEDDED_RESTRICTED" Secure="yes" />
156 <CustomActionRef Id="WixQueryOsInfo" />
157 </Fragment>
158 <Fragment>
159 <Property Id="WIX_SUITE_EMBEDDEDNT" Secure="yes" />
160 <CustomActionRef Id="WixQueryOsInfo" />
161 </Fragment>
162 <Fragment>
163 <Property Id="WIX_SUITE_ENTERPRISE" Secure="yes" />
164 <CustomActionRef Id="WixQueryOsInfo" />
165 </Fragment>
166 <Fragment>
167 <Property Id="WIX_SUITE_MEDIACENTER" Secure="yes" />
168 <CustomActionRef Id="WixQueryOsInfo" />
169 </Fragment>
170 <Fragment>
171 <Property Id="WIX_SUITE_PERSONAL" Secure="yes" />
172 <CustomActionRef Id="WixQueryOsInfo" />
173 </Fragment>
174 <Fragment>
175 <Property Id="WIX_SUITE_SECURITY_APPLIANCE" Secure="yes" />
176 <CustomActionRef Id="WixQueryOsInfo" />
177 </Fragment>
178 <Fragment>
179 <Property Id="WIX_SUITE_SERVERR2" Secure="yes" />
180 <CustomActionRef Id="WixQueryOsInfo" />
181 </Fragment>
182 <Fragment>
183 <Property Id="WIX_SUITE_SINGLEUSERTS" Secure="yes" />
184 <CustomActionRef Id="WixQueryOsInfo" />
185 </Fragment>
186 <Fragment>
187 <Property Id="WIX_SUITE_SMALLBUSINESS" Secure="yes" />
188 <CustomActionRef Id="WixQueryOsInfo" />
189 </Fragment>
190 <Fragment>
191 <Property Id="WIX_SUITE_SMALLBUSINESS_RESTRICTED" Secure="yes" />
192 <CustomActionRef Id="WixQueryOsInfo" />
193 </Fragment>
194 <Fragment>
195 <Property Id="WIX_SUITE_STARTER" Secure="yes" />
196 <CustomActionRef Id="WixQueryOsInfo" />
197 </Fragment>
198 <Fragment>
199 <Property Id="WIX_SUITE_STORAGE_SERVER" Secure="yes" />
200 <CustomActionRef Id="WixQueryOsInfo" />
201 </Fragment>
202 <Fragment>
203 <Property Id="WIX_SUITE_TABLETPC" Secure="yes" />
204 <CustomActionRef Id="WixQueryOsInfo" />
205 </Fragment>
206 <Fragment>
207 <Property Id="WIX_SUITE_TERMINAL" Secure="yes" />
208 <CustomActionRef Id="WixQueryOsInfo" />
209 </Fragment>
210 <Fragment>
211 <Property Id="WIX_SUITE_WH_SERVER" Secure="yes" />
212 <CustomActionRef Id="WixQueryOsInfo" />
213 </Fragment>
214
215 <Fragment>
216 <CustomAction Id="WixQueryOsDirs" BinaryKey="WixCA" DllEntry="WixQueryOsDirs" Execute="firstSequence" Return="check" SuppressModularization="yes" />
217
218 <InstallExecuteSequence>
219 <Custom Action="WixQueryOsDirs" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
220 </InstallExecuteSequence>
221
222 <InstallUISequence>
223 <Custom Action="WixQueryOsDirs" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
224 </InstallUISequence>
225 </Fragment>
226
227 <Fragment>
228 <Property Id="WIX_DIR_ADMINTOOLS" Secure="yes" />
229 <CustomActionRef Id="WixQueryOsDirs" />
230 </Fragment>
231 <Fragment>
232 <Property Id="WIX_DIR_ALTSTARTUP" Secure="yes" />
233 <CustomActionRef Id="WixQueryOsDirs" />
234 </Fragment>
235 <Fragment>
236 <Property Id="WIX_DIR_CDBURN_AREA" Secure="yes" />
237 <CustomActionRef Id="WixQueryOsDirs" />
238 </Fragment>
239 <Fragment>
240 <Property Id="WIX_DIR_COMMON_ADMINTOOLS" Secure="yes" />
241 <CustomActionRef Id="WixQueryOsDirs" />
242 </Fragment>
243 <Fragment>
244 <Property Id="WIX_DIR_COMMON_ALTSTARTUP" Secure="yes" />
245 <CustomActionRef Id="WixQueryOsDirs" />
246 </Fragment>
247 <Fragment>
248 <Property Id="WIX_DIR_COMMON_DOCUMENTS" Secure="yes" />
249 <CustomActionRef Id="WixQueryOsDirs" />
250 </Fragment>
251 <Fragment>
252 <Property Id="WIX_DIR_COMMON_FAVORITES" Secure="yes" />
253 <CustomActionRef Id="WixQueryOsDirs" />
254 </Fragment>
255 <Fragment>
256 <Property Id="WIX_DIR_COMMON_MUSIC" Secure="yes" />
257 <CustomActionRef Id="WixQueryOsDirs" />
258 </Fragment>
259 <Fragment>
260 <Property Id="WIX_DIR_COMMON_PICTURES" Secure="yes" />
261 <CustomActionRef Id="WixQueryOsDirs" />
262 </Fragment>
263 <Fragment>
264 <Property Id="WIX_DIR_COMMON_VIDEO" Secure="yes" />
265 <CustomActionRef Id="WixQueryOsDirs" />
266 </Fragment>
267 <Fragment>
268 <Property Id="WIX_DIR_COOKIES" Secure="yes" />
269 <CustomActionRef Id="WixQueryOsDirs" />
270 </Fragment>
271 <Fragment>
272 <Property Id="WIX_DIR_DESKTOP" Secure="yes" />
273 <CustomActionRef Id="WixQueryOsDirs" />
274 </Fragment>
275 <Fragment>
276 <Property Id="WIX_DIR_HISTORY" Secure="yes" />
277 <CustomActionRef Id="WixQueryOsDirs" />
278 </Fragment>
279 <Fragment>
280 <Property Id="WIX_DIR_INTERNET_CACHE" Secure="yes" />
281 <CustomActionRef Id="WixQueryOsDirs" />
282 </Fragment>
283 <Fragment>
284 <Property Id="WIX_DIR_MYMUSIC" Secure="yes" />
285 <CustomActionRef Id="WixQueryOsDirs" />
286 </Fragment>
287 <Fragment>
288 <Property Id="WIX_DIR_MYPICTURES" Secure="yes" />
289 <CustomActionRef Id="WixQueryOsDirs" />
290 </Fragment>
291 <Fragment>
292 <Property Id="WIX_DIR_MYVIDEO" Secure="yes" />
293 <CustomActionRef Id="WixQueryOsDirs" />
294 </Fragment>
295 <Fragment>
296 <Property Id="WIX_DIR_NETHOOD" Secure="yes" />
297 <CustomActionRef Id="WixQueryOsDirs" />
298 </Fragment>
299 <Fragment>
300 <Property Id="WIX_DIR_PERSONAL" Secure="yes" />
301 <CustomActionRef Id="WixQueryOsDirs" />
302 </Fragment>
303 <Fragment>
304 <Property Id="WIX_DIR_PRINTHOOD" Secure="yes" />
305 <CustomActionRef Id="WixQueryOsDirs" />
306 </Fragment>
307 <Fragment>
308 <Property Id="WIX_DIR_PROFILE" Secure="yes" />
309 <CustomActionRef Id="WixQueryOsDirs" />
310 </Fragment>
311 <Fragment>
312 <Property Id="WIX_DIR_RECENT" Secure="yes" />
313 <CustomActionRef Id="WixQueryOsDirs" />
314 </Fragment>
315 <Fragment>
316 <Property Id="WIX_DIR_RESOURCES" Secure="yes" />
317 <CustomActionRef Id="WixQueryOsDirs" />
318 </Fragment>
319
320 <Fragment>
321 <CustomAction Id="WixQueryOsWellKnownSID" BinaryKey="WixCA" DllEntry="WixQueryOsWellKnownSID" Execute="firstSequence" Return="check" SuppressModularization="yes" />
322
323 <InstallExecuteSequence>
324 <Custom Action="WixQueryOsWellKnownSID" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
325 </InstallExecuteSequence>
326
327 <InstallUISequence>
328 <Custom Action="WixQueryOsWellKnownSID" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
329 </InstallUISequence>
330 </Fragment>
331
332 <Fragment>
333 <Property Id="WIX_ACCOUNT_LOCALSYSTEM" Secure="yes" />
334 <CustomActionRef Id="WixQueryOsWellKnownSID" />
335 </Fragment>
336 <Fragment>
337 <Property Id="WIX_ACCOUNT_LOCALSERVICE" Secure="yes" />
338 <CustomActionRef Id="WixQueryOsWellKnownSID" />
339 </Fragment>
340 <Fragment>
341 <Property Id="WIX_ACCOUNT_NETWORKSERVICE" Secure="yes" />
342 <CustomActionRef Id="WixQueryOsWellKnownSID" />
343 </Fragment>
344 <Fragment>
345 <Property Id="WIX_ACCOUNT_ADMINISTRATORS" Secure="yes" />
346 <CustomActionRef Id="WixQueryOsWellKnownSID" />
347 </Fragment>
348 <Fragment>
349 <Property Id="WIX_ACCOUNT_USERS" Secure="yes" />
350 <CustomActionRef Id="WixQueryOsWellKnownSID" />
351 </Fragment>
352 <Fragment>
353 <Property Id="WIX_ACCOUNT_GUESTS" Secure="yes" />
354 <CustomActionRef Id="WixQueryOsWellKnownSID" />
355 </Fragment>
356 <Fragment>
357 <Property Id="WIX_ACCOUNT_PERFLOGUSERS" Secure="yes" />
358 <Property Id="WIX_ACCOUNT_PERFLOGUSERS_NODOMAIN" Secure="yes" />
359 <CustomActionRef Id="WixQueryOsWellKnownSID" />
360 </Fragment>
361
362 <Fragment>
363 <CustomAction Id="WixQueryOsDriverInfo" BinaryKey="WixCA" DllEntry="WixQueryOsDriverInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" />
364
365 <InstallExecuteSequence>
366 <Custom Action="WixQueryOsDriverInfo" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
367 </InstallExecuteSequence>
368
369 <InstallUISequence>
370 <Custom Action="WixQueryOsDriverInfo" After="AppSearch" Overridable="yes">VersionNT &gt; 400 OR (VersionNT = 400 AND ServicePackLevel &gt; 3)</Custom>
371 </InstallUISequence>
372 </Fragment>
373
374 <Fragment>
375 <Property Id="WIX_WDDM_DRIVER_PRESENT" Secure="yes" />
376 <CustomActionRef Id="WixQueryOsDriverInfo" />
377 </Fragment>
378
379 <Fragment>
380 <Property Id="WIX_DWM_COMPOSITION_ENABLED" Secure="yes" />
381 <CustomActionRef Id="WixQueryOsDriverInfo" />
382 </Fragment>
383
384 <!-- ShellExec custom actions (for when only one is needed; multiple executions need their own IDs) -->
385 <Fragment>
386 <PropertyRef Id="WixShellExecBinaryId" />
387 <CustomAction Id="WixShellExecBinary" BinaryKey="WixCA" DllEntry="WixShellExecBinary" Execute="immediate" Return="check" Impersonate="yes" />
388 </Fragment>
389
390 <Fragment>
391 <PropertyRef Id="WixShellExecTarget" />
392 <CustomAction Id="WixShellExec" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" />
393 </Fragment>
394
395 <Fragment>
396 <PropertyRef Id="WixUnelevatedShellExecTarget" />
397 <CustomAction Id="WixUnelevatedShellExec" BinaryKey="WixCA" DllEntry="WixUnelevatedShellExec" Execute="immediate" Return="check" Impersonate="yes" />
398 </Fragment>
399
400 <Fragment>
401 <PropertyRef Id="QtExecCmdLine" />
402 <CustomAction Id="QtExec" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check" Impersonate="yes" />
403 </Fragment>
404
405 <Fragment>
406 <PropertyRef Id="QtExec64CmdLine" />
407 <CustomAction Id="QtExec64" BinaryKey="WixCA" DllEntry="CAQuietExec64" Execute="immediate" Return="check" Impersonate="yes" />
408 </Fragment>
409
410 <Fragment>
411 <PropertyRef Id="WixQuietExecCmdLine" />
412 <CustomAction Id="WixQuietExec" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="immediate" Return="check" Impersonate="yes" />
413 </Fragment>
414
415 <Fragment>
416 <PropertyRef Id="WixQuietExec64CmdLine" />
417 <CustomAction Id="WixQuietExec64" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="immediate" Return="check" Impersonate="yes" />
418 </Fragment>
419
420 <!-- SilentExec custom actions differ from QtExec in that they do not log the commandline or output of the exe -->
421 <Fragment>
422 <PropertyRef Id="WixSilentExecCmdLine" />
423 <CustomAction Id="WixSilentExec" BinaryKey="WixCA" DllEntry="WixSilentExec" Execute="immediate" Return="check" Impersonate="yes" />
424 </Fragment>
425
426 <Fragment>
427 <PropertyRef Id="WixSilentExec64CmdLine" />
428 <CustomAction Id="WixSilentExec64" BinaryKey="WixCA" DllEntry="WixSilentExec64" Execute="immediate" Return="check" Impersonate="yes" />
429 </Fragment>
430</Wix>