diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-26 14:55:01 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-26 14:55:01 -0700 |
commit | cc20def99bbd0b28f19d90aee50d67f674738505 (patch) | |
tree | d73260b1088990e829183cb4562d5b326a2b8ec7 /src/wixlib | |
parent | c95213afde7af57af4b2bbaa2d29344accbebf01 (diff) | |
download | wix-cc20def99bbd0b28f19d90aee50d67f674738505.tar.gz wix-cc20def99bbd0b28f19d90aee50d67f674738505.tar.bz2 wix-cc20def99bbd0b28f19d90aee50d67f674738505.zip |
Remove use of inner text conversions for Util.wixext
Also, convert all test code to modern expectation
Diffstat (limited to 'src/wixlib')
-rw-r--r-- | src/wixlib/UtilExtension.wxs | 94 | ||||
-rw-r--r-- | src/wixlib/UtilExtension_arm.wxs | 3 | ||||
-rw-r--r-- | src/wixlib/UtilExtension_arm64.wxs | 3 | ||||
-rw-r--r-- | src/wixlib/UtilExtension_x64.wxs | 3 | ||||
-rw-r--r-- | src/wixlib/UtilExtension_x86.wxs | 3 |
5 files changed, 48 insertions, 58 deletions
diff --git a/src/wixlib/UtilExtension.wxs b/src/wixlib/UtilExtension.wxs index 62d9e37a..2e9ad272 100644 --- a/src/wixlib/UtilExtension.wxs +++ b/src/wixlib/UtilExtension.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <!-- 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. --> |
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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
@@ -8,71 +7,69 @@ | |||
8 | 7 | ||
9 | <Fragment> | 8 | <Fragment> |
10 | <UI Id="ConfigureUsersErrorText"> | 9 | <UI Id="ConfigureUsersErrorText"> |
11 | <Error Id="$(var.msierrUSRFailedUserCreate)">!(loc.msierrUSRFailedUserCreate)</Error> | 10 | <Error Id="$(var.msierrUSRFailedUserCreate)" Message="!(loc.msierrUSRFailedUserCreate)" /> |
12 | <Error Id="$(var.msierrUSRFailedUserCreatePswd)">!(loc.msierrUSRFailedUserCreatePswd)</Error> | 11 | <Error Id="$(var.msierrUSRFailedUserCreatePswd)" Message="!(loc.msierrUSRFailedUserCreatePswd)" /> |
13 | <Error Id="$(var.msierrUSRFailedUserGroupAdd)">!(loc.msierrUSRFailedUserGroupAdd)</Error> | 12 | <Error Id="$(var.msierrUSRFailedUserGroupAdd)" Message="!(loc.msierrUSRFailedUserGroupAdd)" /> |
14 | <Error Id="$(var.msierrUSRFailedGrantLogonAsService)">Failed to grant 'logon as service' rights to user. ([2] [3] [4] [5])</Error> | 13 | <Error Id="$(var.msierrUSRFailedGrantLogonAsService)" Message="Failed to grant 'logon as service' rights to user. ([2] [3] [4] [5])" /> |
15 | <Error Id="$(var.msierrUSRFailedUserCreateExists)">!(loc.msierrUSRFailedUserCreateExists)</Error> | 14 | <Error Id="$(var.msierrUSRFailedUserCreateExists)" Message="!(loc.msierrUSRFailedUserCreateExists)" /> |
16 | </UI> | 15 | </UI> |
17 | </Fragment> | 16 | </Fragment> |
18 | 17 | ||
19 | <Fragment> | 18 | <Fragment> |
20 | <UI Id="ConfigureSmbErrorsText"> | 19 | <UI Id="ConfigureSmbErrorsText"> |
21 | <Error Id="$(var.msierrSMBFailedCreate)">!(loc.msierrSMBFailedCreate)</Error> | 20 | <Error Id="$(var.msierrSMBFailedCreate)" Message="!(loc.msierrSMBFailedCreate)" /> |
22 | <Error Id="$(var.msierrSMBFailedDrop)">!(loc.msierrSMBFailedDrop)</Error> | 21 | <Error Id="$(var.msierrSMBFailedDrop)" Message="!(loc.msierrSMBFailedDrop)" /> |
23 | </UI> | 22 | </UI> |
24 | </Fragment> | 23 | </Fragment> |
25 | 24 | ||
26 | <Fragment> | 25 | <Fragment> |
27 | <UI Id="PerCounterDataErrorsText"> | 26 | <UI Id="PerCounterDataErrorsText"> |
28 | <Error Id="$(var.msierrInstallPerfCounterData)">!(loc.msierrInstallPerfCounterData)</Error> | 27 | <Error Id="$(var.msierrInstallPerfCounterData)" Message="!(loc.msierrInstallPerfCounterData)" /> |
29 | <Error Id="$(var.msierrUninstallPerfCounterData)">!(loc.msierrUninstallPerfCounterData)</Error> | 28 | <Error Id="$(var.msierrUninstallPerfCounterData)" Message="!(loc.msierrUninstallPerfCounterData)" /> |
30 | </UI> | 29 | </UI> |
31 | </Fragment> | 30 | </Fragment> |
32 | 31 | ||
33 | <Fragment> | 32 | <Fragment> |
34 | <UI Id="ConfigurePerfmonErrorsText"> | 33 | <UI Id="ConfigurePerfmonErrorsText"> |
35 | <Error Id="$(var.msierrPERFMONFailedRegisterDLL)">!(loc.msierrPERFMONFailedRegisterDLL)</Error> | 34 | <Error Id="$(var.msierrPERFMONFailedRegisterDLL)" Message="!(loc.msierrPERFMONFailedRegisterDLL)" /> |
36 | <Error Id="$(var.msierrPERFMONFailedUnregisterDLL)">!(loc.msierrPERFMONFailedUnregisterDLL)</Error> | 35 | <Error Id="$(var.msierrPERFMONFailedUnregisterDLL)" Message="!(loc.msierrPERFMONFailedUnregisterDLL)" /> |
37 | </UI> | 36 | </UI> |
38 | </Fragment> | 37 | </Fragment> |
39 | 38 | ||
40 | <Fragment> | 39 | <Fragment> |
41 | <UI Id="SecureObjectsErrors"> | 40 | <UI Id="SecureObjectsErrors"> |
42 | <Error Id="$(var.msierrSecureObjectsFailedCreateSD)">!(loc.msierrSecureObjectsFailedCreateSD)</Error> | 41 | <Error Id="$(var.msierrSecureObjectsFailedCreateSD)" Message="!(loc.msierrSecureObjectsFailedCreateSD)" /> |
43 | <Error Id="$(var.msierrSecureObjectsFailedSet)">!(loc.msierrSecureObjectsFailedSet)</Error> | 42 | <Error Id="$(var.msierrSecureObjectsFailedSet)" Message="!(loc.msierrSecureObjectsFailedSet)" /> |
44 | <Error Id="$(var.msierrSecureObjectsUnknownType)">!(loc.msierrSecureObjectsUnknownType)</Error> | 43 | <Error Id="$(var.msierrSecureObjectsUnknownType)" Message="!(loc.msierrSecureObjectsUnknownType)" /> |
45 | </UI> | 44 | </UI> |
46 | </Fragment> | 45 | </Fragment> |
47 | 46 | ||
48 | <Fragment> | 47 | <Fragment> |
49 | <UI Id="XmlFileErrorsText"> | 48 | <UI Id="XmlFileErrorsText"> |
50 | <Error Id="$(var.msierrXmlFileFailedRead)">!(loc.msierrXmlFileFailedRead)</Error> | 49 | <Error Id="$(var.msierrXmlFileFailedRead)" Message="!(loc.msierrXmlFileFailedRead)" /> |
51 | <Error Id="$(var.msierrXmlFileFailedOpen)">!(loc.msierrXmlFileFailedOpen)</Error> | 50 | <Error Id="$(var.msierrXmlFileFailedOpen)" Message="!(loc.msierrXmlFileFailedOpen)" /> |
52 | <Error Id="$(var.msierrXmlFileFailedSelect)">!(loc.msierrXmlFileFailedSelect)</Error> | 51 | <Error Id="$(var.msierrXmlFileFailedSelect)" Message="!(loc.msierrXmlFileFailedSelect)" /> |
53 | <Error Id="$(var.msierrXmlFileFailedSave)">!(loc.msierrXmlFileFailedSave)</Error> | 52 | <Error Id="$(var.msierrXmlFileFailedSave)" Message="!(loc.msierrXmlFileFailedSave)" /> |
54 | </UI> | 53 | </UI> |
55 | </Fragment> | 54 | </Fragment> |
56 | 55 | ||
57 | <Fragment> | 56 | <Fragment> |
58 | <UI Id="XmlConfigErrorsText"> | 57 | <UI Id="XmlConfigErrorsText"> |
59 | <Error Id="$(var.msierrXmlConfigFailedRead)">!(loc.msierrXmlConfigFailedRead)</Error> | 58 | <Error Id="$(var.msierrXmlConfigFailedRead)" Message="!(loc.msierrXmlConfigFailedRead)" /> |
60 | <Error Id="$(var.msierrXmlConfigFailedOpen)">!(loc.msierrXmlConfigFailedOpen)</Error> | 59 | <Error Id="$(var.msierrXmlConfigFailedOpen)" Message="!(loc.msierrXmlConfigFailedOpen)" /> |
61 | <Error Id="$(var.msierrXmlConfigFailedSelect)">!(loc.msierrXmlConfigFailedSelect)</Error> | 60 | <Error Id="$(var.msierrXmlConfigFailedSelect)" Message="!(loc.msierrXmlConfigFailedSelect)" /> |
62 | <Error Id="$(var.msierrXmlConfigFailedSave)">!(loc.msierrXmlConfigFailedSave)</Error> | 61 | <Error Id="$(var.msierrXmlConfigFailedSave)" Message="!(loc.msierrXmlConfigFailedSave)" /> |
63 | </UI> | 62 | </UI> |
64 | </Fragment> | 63 | </Fragment> |
65 | 64 | ||
66 | <!-- WiX OS-detection properties and custom action --> | 65 | <!-- WiX OS-detection properties and custom action --> |
67 | <Fragment> | 66 | <Fragment> |
68 | <CustomAction Id="$(var.Prefix)QueryOsInfo$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" /> | 67 | <CustomAction Id="$(var.Prefix)QueryOsInfo$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" /> |
69 | |||
70 | <InstallExecuteSequence> | 68 | <InstallExecuteSequence> |
71 | <Custom Action="$(var.Prefix)QueryOsInfo$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 69 | <Custom Action="$(var.Prefix)QueryOsInfo$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
72 | </InstallExecuteSequence> | 70 | </InstallExecuteSequence> |
73 | |||
74 | <InstallUISequence> | 71 | <InstallUISequence> |
75 | <Custom Action="$(var.Prefix)QueryOsInfo$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 72 | <Custom Action="$(var.Prefix)QueryOsInfo$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
76 | </InstallUISequence> | 73 | </InstallUISequence> |
77 | </Fragment> | 74 | </Fragment> |
78 | 75 | ||
@@ -159,13 +156,11 @@ | |||
159 | 156 | ||
160 | <Fragment> | 157 | <Fragment> |
161 | <CustomAction Id="$(var.Prefix)QueryOsDirs$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsDirs" Execute="firstSequence" Return="check" SuppressModularization="yes" /> | 158 | <CustomAction Id="$(var.Prefix)QueryOsDirs$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsDirs" Execute="firstSequence" Return="check" SuppressModularization="yes" /> |
162 | |||
163 | <InstallExecuteSequence> | 159 | <InstallExecuteSequence> |
164 | <Custom Action="$(var.Prefix)QueryOsDirs$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 160 | <Custom Action="$(var.Prefix)QueryOsDirs$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
165 | </InstallExecuteSequence> | 161 | </InstallExecuteSequence> |
166 | |||
167 | <InstallUISequence> | 162 | <InstallUISequence> |
168 | <Custom Action="$(var.Prefix)QueryOsDirs$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 163 | <Custom Action="$(var.Prefix)QueryOsDirs$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
169 | </InstallUISequence> | 164 | </InstallUISequence> |
170 | </Fragment> | 165 | </Fragment> |
171 | 166 | ||
@@ -266,14 +261,13 @@ | |||
266 | <CustomAction Id="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsWellKnownSID" Execute="firstSequence" Return="check" SuppressModularization="yes" /> | 261 | <CustomAction Id="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsWellKnownSID" Execute="firstSequence" Return="check" SuppressModularization="yes" /> |
267 | 262 | ||
268 | <InstallExecuteSequence> | 263 | <InstallExecuteSequence> |
269 | <Custom Action="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 264 | <Custom Action="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
270 | </InstallExecuteSequence> | 265 | </InstallExecuteSequence> |
271 | 266 | ||
272 | <InstallUISequence> | 267 | <InstallUISequence> |
273 | <Custom Action="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 268 | <Custom Action="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
274 | </InstallUISequence> | 269 | </InstallUISequence> |
275 | </Fragment> | 270 | </Fragment> |
276 | |||
277 | <Fragment> | 271 | <Fragment> |
278 | <Property Id="WIX_ACCOUNT_LOCALSYSTEM" Secure="yes" /> | 272 | <Property Id="WIX_ACCOUNT_LOCALSYSTEM" Secure="yes" /> |
279 | <CustomActionRef Id="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" /> | 273 | <CustomActionRef Id="$(var.Prefix)QueryOsWellKnownSID$(var.Suffix)" /> |
@@ -305,25 +299,25 @@ | |||
305 | </Fragment> | 299 | </Fragment> |
306 | 300 | ||
307 | <Fragment> | 301 | <Fragment> |
308 | <CustomAction Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsDriverInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" /> | 302 | <CustomAction Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" BinaryKey="$(var.Prefix)UtilCA$(var.Suffix)" DllEntry="WixQueryOsDriverInfo" Execute="firstSequence" Return="check" SuppressModularization="yes" /> |
309 | 303 | ||
310 | <InstallExecuteSequence> | 304 | <InstallExecuteSequence> |
311 | <Custom Action="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 305 | <Custom Action="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
312 | </InstallExecuteSequence> | 306 | </InstallExecuteSequence> |
313 | 307 | ||
314 | <InstallUISequence> | 308 | <InstallUISequence> |
315 | <Custom Action="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" After="AppSearch" Overridable="yes">VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)</Custom> | 309 | <Custom Action="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" After="AppSearch" Overridable="yes" Condition="VersionNT > 400 OR (VersionNT = 400 AND ServicePackLevel > 3)" /> |
316 | </InstallUISequence> | 310 | </InstallUISequence> |
317 | </Fragment> | 311 | </Fragment> |
318 | 312 | ||
319 | <Fragment> | 313 | <Fragment> |
320 | <Property Id="WIX_WDDM_DRIVER_PRESENT" Secure="yes" /> | 314 | <Property Id="WIX_WDDM_DRIVER_PRESENT" Secure="yes" /> |
321 | <CustomActionRef Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" /> | 315 | <CustomActionRef Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" /> |
322 | </Fragment> | 316 | </Fragment> |
323 | 317 | ||
324 | <Fragment> | 318 | <Fragment> |
325 | <Property Id="WIX_DWM_COMPOSITION_ENABLED" Secure="yes" /> | 319 | <Property Id="WIX_DWM_COMPOSITION_ENABLED" Secure="yes" /> |
326 | <CustomActionRef Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" /> | 320 | <CustomActionRef Id="$(var.Prefix)QueryOsDriverInfo$(var.Suffix)" /> |
327 | </Fragment> | 321 | </Fragment> |
328 | 322 | ||
329 | <Fragment> | 323 | <Fragment> |
diff --git a/src/wixlib/UtilExtension_arm.wxs b/src/wixlib/UtilExtension_arm.wxs index c3ec27f7..8ae19029 100644 --- a/src/wixlib/UtilExtension_arm.wxs +++ b/src/wixlib/UtilExtension_arm.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0"?> | 1 | <!-- 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. --> |
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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
diff --git a/src/wixlib/UtilExtension_arm64.wxs b/src/wixlib/UtilExtension_arm64.wxs index 1d552acf..b9dc73b8 100644 --- a/src/wixlib/UtilExtension_arm64.wxs +++ b/src/wixlib/UtilExtension_arm64.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0"?> | 1 | <!-- 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. --> |
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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
diff --git a/src/wixlib/UtilExtension_x64.wxs b/src/wixlib/UtilExtension_x64.wxs index e902f97a..40cdf306 100644 --- a/src/wixlib/UtilExtension_x64.wxs +++ b/src/wixlib/UtilExtension_x64.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0"?> | 1 | <!-- 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. --> |
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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
diff --git a/src/wixlib/UtilExtension_x86.wxs b/src/wixlib/UtilExtension_x86.wxs index ff4f08c4..bd0fa562 100644 --- a/src/wixlib/UtilExtension_x86.wxs +++ b/src/wixlib/UtilExtension_x86.wxs | |||
@@ -1,5 +1,4 @@ | |||
1 | <?xml version="1.0"?> | 1 | <!-- 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. --> |
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 | 2 | ||
4 | 3 | ||
5 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |