diff options
author | Rob Mensching <rob@firegiant.com> | 2023-03-09 03:43:57 -0800 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2023-03-09 06:17:00 -0700 |
commit | 3efe3f3a8682f333741b3c52e10eea2297f43dc9 (patch) | |
tree | c4935644e337175b44ba137e99265144444857bc /src/ext/UI/wixlib | |
parent | 3bc1056b69b420de75ce571c102b3b24c8cab390 (diff) | |
download | wix-3efe3f3a8682f333741b3c52e10eea2297f43dc9.tar.gz wix-3efe3f3a8682f333741b3c52e10eea2297f43dc9.tar.bz2 wix-3efe3f3a8682f333741b3c52e10eea2297f43dc9.zip |
Prevent direct references to platform neutral WixUI
Fixes 7265
Diffstat (limited to 'src/ext/UI/wixlib')
-rw-r--r-- | src/ext/UI/wixlib/WixUI_Advanced.wxs | 26 | ||||
-rw-r--r-- | src/ext/UI/wixlib/WixUI_FeatureTree.wxs | 22 | ||||
-rw-r--r-- | src/ext/UI/wixlib/WixUI_InstallDir.wxs | 26 | ||||
-rw-r--r-- | src/ext/UI/wixlib/WixUI_Minimal.wxs | 22 | ||||
-rw-r--r-- | src/ext/UI/wixlib/WixUI_Mondo.wxs | 26 | ||||
-rw-r--r-- | src/ext/UI/wixlib/ui.v3.ncrunchproject | 5 |
6 files changed, 66 insertions, 61 deletions
diff --git a/src/ext/UI/wixlib/WixUI_Advanced.wxs b/src/ext/UI/wixlib/WixUI_Advanced.wxs index 1aabbf96..bab05ec9 100644 --- a/src/ext/UI/wixlib/WixUI_Advanced.wxs +++ b/src/ext/UI/wixlib/WixUI_Advanced.wxs | |||
@@ -1,7 +1,5 @@ | |||
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. --> | 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 | 2 | ||
3 | |||
4 | |||
5 | <!-- | 3 | <!-- |
6 | WixUI_Advanced offers a two-click install (EULA checkbox and Install button) | 4 | WixUI_Advanced offers a two-click install (EULA checkbox and Install button) |
7 | and offers an Advanced button that lets users choose per-machine or per-user | 5 | and offers an Advanced button that lets users choose per-machine or per-user |
@@ -22,6 +20,18 @@ Todo: | |||
22 | --> | 20 | --> |
23 | 21 | ||
24 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 22 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
23 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
24 | <Fragment> | ||
25 | <UI Id="WixUI_Advanced_$(WIXUIARCH)"> | ||
26 | <Publish Dialog="AdvancedWelcomeEulaDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
27 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="1" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
28 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
29 | </UI> | ||
30 | |||
31 | <UIRef Id="WixUI_Advanced" /> | ||
32 | </Fragment> | ||
33 | <?endforeach?> | ||
34 | |||
25 | <Fragment> | 35 | <Fragment> |
26 | <WixVariable Id="WixUISupportPerUser" Value="1" Overridable="yes" /> | 36 | <WixVariable Id="WixUISupportPerUser" Value="1" Overridable="yes" /> |
27 | <WixVariable Id="WixUISupportPerMachine" Value="1" Overridable="yes" /> | 37 | <WixVariable Id="WixUISupportPerMachine" Value="1" Overridable="yes" /> |
@@ -46,7 +56,7 @@ Todo: | |||
46 | <Custom Action="WixSetPerMachineFolder" After="WixSetPerUserFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))" /> | 56 | <Custom Action="WixSetPerMachineFolder" After="WixSetPerUserFolder" Condition="ACTION="INSTALL" AND APPLICATIONFOLDER="" AND (ALLUSERS=1 OR (ALLUSERS=2 AND Privileged))" /> |
47 | </InstallUISequence> | 57 | </InstallUISequence> |
48 | 58 | ||
49 | <UI Id="WixUI_Advanced"> | 59 | <UI Id="file WixUI_Advanced"> |
50 | <TextStyle Id="WixUI_Font_Normal" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Normal_Size)" /> | 60 | <TextStyle Id="WixUI_Font_Normal" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Normal_Size)" /> |
51 | <TextStyle Id="WixUI_Font_Bigger" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Bigger_Size)" /> | 61 | <TextStyle Id="WixUI_Font_Bigger" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Bigger_Size)" /> |
52 | <TextStyle Id="WixUI_Font_Title" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Title_Size)" Bold="yes" /> | 62 | <TextStyle Id="WixUI_Font_Title" FaceName="!(loc.Advanced_Font_FaceName)" Size="!(loc.Advanced_Font_Title_Size)" Bold="yes" /> |
@@ -115,14 +125,4 @@ Todo: | |||
115 | <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" /> | 125 | <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONFOLDER" /> |
116 | <UIRef Id="WixUI_Common" /> | 126 | <UIRef Id="WixUI_Common" /> |
117 | </Fragment> | 127 | </Fragment> |
118 | |||
119 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
120 | <Fragment> | ||
121 | <UI Id="WixUI_Advanced_$(WIXUIARCH)"> | ||
122 | <Publish Dialog="AdvancedWelcomeEulaDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
123 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="1" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
124 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
125 | </UI> | ||
126 | </Fragment> | ||
127 | <?endforeach?> | ||
128 | </Wix> | 128 | </Wix> |
diff --git a/src/ext/UI/wixlib/WixUI_FeatureTree.wxs b/src/ext/UI/wixlib/WixUI_FeatureTree.wxs index e50839d3..6b9b1cf3 100644 --- a/src/ext/UI/wixlib/WixUI_FeatureTree.wxs +++ b/src/ext/UI/wixlib/WixUI_FeatureTree.wxs | |||
@@ -1,7 +1,5 @@ | |||
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. --> | 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 | 2 | ||
3 | |||
4 | |||
5 | <!-- | 3 | <!-- |
6 | First-time install dialog sequence: | 4 | First-time install dialog sequence: |
7 | - WixUI_WelcomeDlg | 5 | - WixUI_WelcomeDlg |
@@ -22,8 +20,18 @@ Patch dialog sequence: | |||
22 | --> | 20 | --> |
23 | 21 | ||
24 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 22 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
23 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
25 | <Fragment> | 24 | <Fragment> |
26 | <UI Id="WixUI_FeatureTree"> | 25 | <UI Id="WixUI_FeatureTree_$(WIXUIARCH)"> |
26 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
27 | </UI> | ||
28 | |||
29 | <UIRef Id="WixUI_FeatureTree" /> | ||
30 | </Fragment> | ||
31 | <?endforeach?> | ||
32 | |||
33 | <Fragment> | ||
34 | <UI Id="file WixUI_FeatureTree"> | ||
27 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | 35 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
28 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | 36 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
29 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | 37 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
@@ -65,12 +73,4 @@ Patch dialog sequence: | |||
65 | 73 | ||
66 | <UIRef Id="WixUI_Common" /> | 74 | <UIRef Id="WixUI_Common" /> |
67 | </Fragment> | 75 | </Fragment> |
68 | |||
69 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
70 | <Fragment> | ||
71 | <UI Id="WixUI_FeatureTree_$(WIXUIARCH)"> | ||
72 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
73 | </UI> | ||
74 | </Fragment> | ||
75 | <?endforeach?> | ||
76 | </Wix> | 76 | </Wix> |
diff --git a/src/ext/UI/wixlib/WixUI_InstallDir.wxs b/src/ext/UI/wixlib/WixUI_InstallDir.wxs index 10b32ce8..e3c171df 100644 --- a/src/ext/UI/wixlib/WixUI_InstallDir.wxs +++ b/src/ext/UI/wixlib/WixUI_InstallDir.wxs | |||
@@ -1,7 +1,5 @@ | |||
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. --> | 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 | 2 | ||
3 | |||
4 | |||
5 | <!-- | 3 | <!-- |
6 | First-time install dialog sequence: | 4 | First-time install dialog sequence: |
7 | - WixUI_WelcomeDlg | 5 | - WixUI_WelcomeDlg |
@@ -23,8 +21,20 @@ Patch dialog sequence: | |||
23 | --> | 21 | --> |
24 | 22 | ||
25 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 23 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
24 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
26 | <Fragment> | 25 | <Fragment> |
27 | <UI Id="WixUI_InstallDir"> | 26 | <UI Id="WixUI_InstallDir_$(WIXUIARCH)"> |
27 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
28 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
29 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
30 | </UI> | ||
31 | |||
32 | <UIRef Id="WixUI_InstallDir" /> | ||
33 | </Fragment> | ||
34 | <?endforeach?> | ||
35 | |||
36 | <Fragment> | ||
37 | <UI Id="file WixUI_InstallDir"> | ||
28 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | 38 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
29 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | 39 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
30 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | 40 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
@@ -72,14 +82,4 @@ Patch dialog sequence: | |||
72 | 82 | ||
73 | <UIRef Id="WixUI_Common" /> | 83 | <UIRef Id="WixUI_Common" /> |
74 | </Fragment> | 84 | </Fragment> |
75 | |||
76 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
77 | <Fragment> | ||
78 | <UI Id="WixUI_InstallDir_$(WIXUIARCH)"> | ||
79 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
80 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
81 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
82 | </UI> | ||
83 | </Fragment> | ||
84 | <?endforeach?> | ||
85 | </Wix> | 85 | </Wix> |
diff --git a/src/ext/UI/wixlib/WixUI_Minimal.wxs b/src/ext/UI/wixlib/WixUI_Minimal.wxs index 6d1709c5..0c69d8f8 100644 --- a/src/ext/UI/wixlib/WixUI_Minimal.wxs +++ b/src/ext/UI/wixlib/WixUI_Minimal.wxs | |||
@@ -1,7 +1,5 @@ | |||
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. --> | 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 | 2 | ||
3 | |||
4 | |||
5 | <!-- | 3 | <!-- |
6 | First-time install dialog sequence: | 4 | First-time install dialog sequence: |
7 | - WixUI_WelcomeEulaDlg | 5 | - WixUI_WelcomeEulaDlg |
@@ -17,8 +15,18 @@ Patch dialog sequence: | |||
17 | --> | 15 | --> |
18 | 16 | ||
19 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 17 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
18 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
20 | <Fragment> | 19 | <Fragment> |
21 | <UI Id="WixUI_Minimal"> | 20 | <UI Id="WixUI_Minimal_$(WIXUIARCH)"> |
21 | <Publish Dialog="WelcomeEulaDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
22 | </UI> | ||
23 | |||
24 | <UIRef Id="WixUI_Minimal" /> | ||
25 | </Fragment> | ||
26 | <?endforeach?> | ||
27 | |||
28 | <Fragment> | ||
29 | <UI Id="file WixUI_Minimal"> | ||
22 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | 30 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
23 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | 31 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
24 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | 32 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
@@ -59,12 +67,4 @@ Patch dialog sequence: | |||
59 | 67 | ||
60 | <UIRef Id="WixUI_Common" /> | 68 | <UIRef Id="WixUI_Common" /> |
61 | </Fragment> | 69 | </Fragment> |
62 | |||
63 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
64 | <Fragment> | ||
65 | <UI Id="WixUI_Minimal_$(WIXUIARCH)"> | ||
66 | <Publish Dialog="WelcomeEulaDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
67 | </UI> | ||
68 | </Fragment> | ||
69 | <?endforeach?> | ||
70 | </Wix> | 70 | </Wix> |
diff --git a/src/ext/UI/wixlib/WixUI_Mondo.wxs b/src/ext/UI/wixlib/WixUI_Mondo.wxs index 92890572..2f883b8b 100644 --- a/src/ext/UI/wixlib/WixUI_Mondo.wxs +++ b/src/ext/UI/wixlib/WixUI_Mondo.wxs | |||
@@ -1,7 +1,5 @@ | |||
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. --> | 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 | 2 | ||
3 | |||
4 | |||
5 | <!-- | 3 | <!-- |
6 | First-time install dialog sequence: | 4 | First-time install dialog sequence: |
7 | - WixUI_WelcomeDlg | 5 | - WixUI_WelcomeDlg |
@@ -24,8 +22,20 @@ Patch dialog sequence: | |||
24 | --> | 22 | --> |
25 | 23 | ||
26 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 24 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
25 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
27 | <Fragment> | 26 | <Fragment> |
28 | <UI Id="WixUI_Mondo"> | 27 | <UI Id="WixUI_Mondo_$(WIXUIARCH)"> |
28 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
29 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
30 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
31 | </UI> | ||
32 | |||
33 | <UIRef Id="WixUI_Mondo" /> | ||
34 | </Fragment> | ||
35 | <?endforeach?> | ||
36 | |||
37 | <Fragment> | ||
38 | <UI Id="file WixUI_Mondo"> | ||
29 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> | 39 | <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
30 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> | 40 | <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
31 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> | 41 | <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
@@ -74,14 +84,4 @@ Patch dialog sequence: | |||
74 | 84 | ||
75 | <UIRef Id="WixUI_Common" /> | 85 | <UIRef Id="WixUI_Common" /> |
76 | </Fragment> | 86 | </Fragment> |
77 | |||
78 | <?foreach WIXUIARCH in X86;X64;A64 ?> | ||
79 | <Fragment> | ||
80 | <UI Id="WixUI_Mondo_$(WIXUIARCH)"> | ||
81 | <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" /> | ||
82 | <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
83 | <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> | ||
84 | </UI> | ||
85 | </Fragment> | ||
86 | <?endforeach?> | ||
87 | </Wix> | 87 | </Wix> |
diff --git a/src/ext/UI/wixlib/ui.v3.ncrunchproject b/src/ext/UI/wixlib/ui.v3.ncrunchproject new file mode 100644 index 00000000..319cd523 --- /dev/null +++ b/src/ext/UI/wixlib/ui.v3.ncrunchproject | |||
@@ -0,0 +1,5 @@ | |||
1 | <ProjectConfiguration> | ||
2 | <Settings> | ||
3 | <IgnoreThisComponentCompletely>True</IgnoreThisComponentCompletely> | ||
4 | </Settings> | ||
5 | </ProjectConfiguration> \ No newline at end of file | ||