aboutsummaryrefslogtreecommitdiff
path: root/src/ext/UI/test
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2024-09-27 22:09:24 -0400
committerBob Arnson <bob@firegiant.com>2024-09-28 16:23:20 -0400
commitf8d1a711625599ab94630242976a740a4790915e (patch)
treee4fd039b184bd8bd75a438cdb595fffe888c395e /src/ext/UI/test
parent526a11b68c1be4817c53b35d0ebdcbe5cfc8edb7 (diff)
downloadwix-bob/WixUIOptInPathValidate_8718.tar.gz
wix-bob/WixUIOptInPathValidate_8718.tar.bz2
wix-bob/WixUIOptInPathValidate_8718.zip
Drop CA path validation in WixUI by default.bob/WixUIOptInPathValidate_8718
Add `WixUI/ExtendedPathValidation="yes"` to opt-in. Removed the WIXUI_DONTVALIDATEPATH runtime opt-out. Fixes https://github.com/wixtoolset/issues/issues/8718 Relies on https://github.com/wixtoolset/wix/pull/563
Diffstat (limited to 'src/ext/UI/test')
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_NoLicense/Package.wxs15
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_SpecialDlg/Package.wxs11
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs4
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_InstallDir/Package.wxs4
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Mondo/Package.wxs6
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs46
6 files changed, 29 insertions, 57 deletions
diff --git a/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_NoLicense/Package.wxs b/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_NoLicense/Package.wxs
index 86b7453e..0c9fd195 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_NoLicense/Package.wxs
+++ b/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_NoLicense/Package.wxs
@@ -24,8 +24,8 @@
24 <?foreach WIXUIARCH in X86;X64;A64 ?> 24 <?foreach WIXUIARCH in X86;X64;A64 ?>
25 <Fragment> 25 <Fragment>
26 <UI Id="InstallDir_NoLicense_$(WIXUIARCH)"> 26 <UI Id="InstallDir_NoLicense_$(WIXUIARCH)">
27 <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> 27 <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" />
28 <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> 28 <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" />
29 </UI> 29 </UI>
30 30
31 <UIRef Id="InstallDir_NoLicense" /> 31 <UIRef Id="InstallDir_NoLicense" />
@@ -50,8 +50,6 @@
50 <DialogRef Id="ProgressDlg" /> 50 <DialogRef Id="ProgressDlg" />
51 <DialogRef Id="ResumeDlg" /> 51 <DialogRef Id="ResumeDlg" />
52 <DialogRef Id="UserExit" /> 52 <DialogRef Id="UserExit" />
53
54 <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" />
55 53
56 <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" /> 54 <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" />
57 55
@@ -59,11 +57,14 @@
59 <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" /> 57 <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" />
60 58
61 <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" /> 59 <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" />
62 <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" /> 60 <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="3" />
63 <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" /> 61 <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" />
64 <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" Condition="WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID=&quot;1&quot;" />
65 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" /> 62 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" />
66 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" /> 63 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" />
64
65 <Publish Dialog="BrowseDlg" Control="OK" Event="SetTargetPath" Value="[_BrowseProperty]" Order="3" />
66 <Publish Dialog="BrowseDlg" Control="OK" Event="EndDialog" Value="Return" Order="4" />
67
67 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" /> 68 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" />
68 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" /> 69 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" />
69 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" Condition="Installed AND PATCH" /> 70 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" Condition="Installed AND PATCH" />
diff --git a/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_SpecialDlg/Package.wxs b/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_SpecialDlg/Package.wxs
index eeb44833..de179240 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_SpecialDlg/Package.wxs
+++ b/src/ext/UI/test/WixToolsetTest.UI/TestData/InstallDir_SpecialDlg/Package.wxs
@@ -42,10 +42,7 @@
42 42
43 <?foreach WIXUIARCH in X86;X64;A64 ?> 43 <?foreach WIXUIARCH in X86;X64;A64 ?>
44 <Fragment> 44 <Fragment>
45 <UI Id="InstallDir_SpecialDlg_$(WIXUIARCH)"> 45 <UI Id="InstallDir_SpecialDlg_$(WIXUIARCH)" />
46 <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" />
47 <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" />
48 </UI>
49 46
50 <UIRef Id="InstallDir_SpecialDlg" /> 47 <UIRef Id="InstallDir_SpecialDlg" />
51 </Fragment> 48 </Fragment>
@@ -70,7 +67,7 @@
70 <DialogRef Id="ResumeDlg" /> 67 <DialogRef Id="ResumeDlg" />
71 <DialogRef Id="UserExit" /> 68 <DialogRef Id="UserExit" />
72 69
73 <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" /> 70 <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" Condition="WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" />
74 71
75 <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" /> 72 <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" />
76 73
@@ -85,8 +82,8 @@
85 82
86 <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg" /> 83 <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg" />
87 <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" /> 84 <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" />
88 <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" /> 85 <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3" Condition="WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" />
89 <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" Condition="WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID=&quot;1&quot;" /> 86 <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" Condition="WIXUI_INSTALLDIR_VALID=&quot;1&quot;" />
90 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" /> 87 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" />
91 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" /> 88 <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" />
92 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" /> 89 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" />
diff --git a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs
index c22328e6..095a4546 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs
+++ b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs
@@ -1,12 +1,12 @@
1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
2 <Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a"> 2 <Package Name="WixUI_Advanced" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a">
3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
4 4
5 <Feature Id="ProductFeature" Title="MsiPackage"> 5 <Feature Id="ProductFeature" Title="MsiPackage">
6 <ComponentGroupRef Id="ProductComponents" /> 6 <ComponentGroupRef Id="ProductComponents" />
7 </Feature> 7 </Feature>
8 8
9 <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> 9 <ComponentGroup Id="ProductComponents" Directory="APPLICATIONFOLDER">
10 <Component> 10 <Component>
11 <File Source="example.txt" /> 11 <File Source="example.txt" />
12 </Component> 12 </Component>
diff --git a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_InstallDir/Package.wxs b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_InstallDir/Package.wxs
index 68e1177d..8a6556a9 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_InstallDir/Package.wxs
+++ b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_InstallDir/Package.wxs
@@ -1,5 +1,5 @@
1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
2 <Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200"> 2 <Package Name="WixUI_InstallDir" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200">
3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
4 4
5 <Feature Id="ProductFeature" Title="MsiPackage"> 5 <Feature Id="ProductFeature" Title="MsiPackage">
@@ -12,7 +12,7 @@
12 </Component> 12 </Component>
13 </ComponentGroup> 13 </ComponentGroup>
14 14
15 <ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" /> 15 <ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" ExtendedPathValidation="yes" />
16 </Package> 16 </Package>
17 17
18 <Fragment> 18 <Fragment>
diff --git a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Mondo/Package.wxs b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Mondo/Package.wxs
index 5bb7fa1a..24f18c1e 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Mondo/Package.wxs
+++ b/src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Mondo/Package.wxs
@@ -1,8 +1,8 @@
1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui"> 1<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
2 <Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200"> 2 <Package Name="WixUI_Mondo" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200">
3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> 3 <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
4 4
5 <Feature Id="ProductFeature" Title="MsiPackage"> 5 <Feature Id="ProductFeature" Title="MsiPackage" ConfigurableDirectory="INSTALLFOLDER">
6 <ComponentGroupRef Id="ProductComponents" /> 6 <ComponentGroupRef Id="ProductComponents" />
7 </Feature> 7 </Feature>
8 8
@@ -12,7 +12,7 @@
12 </Component> 12 </Component>
13 </ComponentGroup> 13 </ComponentGroup>
14 14
15 <ui:WixUI Id="WixUI_Mondo" /> 15 <ui:WixUI Id="WixUI_Mondo" ExtendedPathValidation="yes" />
16 <WixVariable Id="WixUILicenseRtf" Value="bpl.rtf" /> 16 <WixVariable Id="WixUILicenseRtf" Value="bpl.rtf" />
17 </Package> 17 </Package>
18 18
diff --git a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
index eb5e3687..bb20f087 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
+++ b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
@@ -29,7 +29,6 @@ namespace WixToolsetTest.UI
29 "Binary:WixUI_Bmp_Up\t[Binary data]", 29 "Binary:WixUI_Bmp_Up\t[Binary data]",
30 "Binary:WixUI_Ico_Exclam\t[Binary data]", 30 "Binary:WixUI_Ico_Exclam\t[Binary data]",
31 "Binary:WixUI_Ico_Info\t[Binary data]", 31 "Binary:WixUI_Ico_Info\t[Binary data]",
32 "Binary:WixUiCa_X86\t[Binary data]",
33 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 32 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
34 WixAssert.CompareLineByLine(new[] 33 WixAssert.CompareLineByLine(new[]
35 { 34 {
@@ -37,13 +36,8 @@ namespace WixToolsetTest.UI
37 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 36 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
38 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 37 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",
39 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t", 38 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t",
40 "CustomAction:WixUIValidatePath_X86\t65\tWixUiCa_X86\tValidatePath\t",
41 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray()); 39 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray());
42 WixAssert.CompareLineByLine(new[] 40 Assert.Empty(results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
43 {
44 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t1",
45 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t2",
46 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
47 WixAssert.CompareLineByLine(new[] 41 WixAssert.CompareLineByLine(new[]
48 { 42 {
49 "InstallUISequence:AdvancedWelcomeEulaDlg\tNOT Installed\t1297", 43 "InstallUISequence:AdvancedWelcomeEulaDlg\tNOT Installed\t1297",
@@ -68,7 +62,6 @@ namespace WixToolsetTest.UI
68 "Binary:WixUI_Bmp_Up\t[Binary data]", 62 "Binary:WixUI_Bmp_Up\t[Binary data]",
69 "Binary:WixUI_Ico_Exclam\t[Binary data]", 63 "Binary:WixUI_Ico_Exclam\t[Binary data]",
70 "Binary:WixUI_Ico_Info\t[Binary data]", 64 "Binary:WixUI_Ico_Info\t[Binary data]",
71 "Binary:WixUiCa_X64\t[Binary data]",
72 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 65 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
73 WixAssert.CompareLineByLine(new[] 66 WixAssert.CompareLineByLine(new[]
74 { 67 {
@@ -76,13 +69,8 @@ namespace WixToolsetTest.UI
76 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 69 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
77 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 70 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",
78 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t", 71 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t",
79 "CustomAction:WixUIValidatePath_X64\t65\tWixUiCa_X64\tValidatePath\t",
80 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray()); 72 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray());
81 WixAssert.CompareLineByLine(new[] 73 Assert.Empty(results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
82 {
83 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X64\tNOT WIXUI_DONTVALIDATEPATH\t1",
84 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X64\tNOT WIXUI_DONTVALIDATEPATH\t2",
85 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
86 } 74 }
87 75
88 [Fact] 76 [Fact]
@@ -102,7 +90,6 @@ namespace WixToolsetTest.UI
102 "Binary:WixUI_Bmp_Up\t[Binary data]", 90 "Binary:WixUI_Bmp_Up\t[Binary data]",
103 "Binary:WixUI_Ico_Exclam\t[Binary data]", 91 "Binary:WixUI_Ico_Exclam\t[Binary data]",
104 "Binary:WixUI_Ico_Info\t[Binary data]", 92 "Binary:WixUI_Ico_Info\t[Binary data]",
105 "Binary:WixUiCa_A64\t[Binary data]",
106 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 93 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
107 WixAssert.CompareLineByLine(new[] 94 WixAssert.CompareLineByLine(new[]
108 { 95 {
@@ -110,13 +97,8 @@ namespace WixToolsetTest.UI
110 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 97 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
111 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 98 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",
112 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t", 99 "CustomAction:WixSetPerUserFolder\t51\tAPPLICATIONFOLDER\t[WixPerUserFolder]\t",
113 "CustomAction:WixUIValidatePath_A64\t65\tWixUiCa_A64\tValidatePath\t",
114 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray()); 100 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray());
115 WixAssert.CompareLineByLine(new[] 101 Assert.Empty(results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
116 {
117 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_A64\tNOT WIXUI_DONTVALIDATEPATH\t1",
118 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_A64\tNOT WIXUI_DONTVALIDATEPATH\t2",
119 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
120 } 102 }
121 103
122 [Fact] 104 [Fact]
@@ -180,8 +162,8 @@ namespace WixToolsetTest.UI
180 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray()); 162 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray());
181 WixAssert.CompareLineByLine(new[] 163 WixAssert.CompareLineByLine(new[]
182 { 164 {
183 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t3", 165 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\t1\t1",
184 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t2", 166 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X86\t1\t1",
185 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray()); 167 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray());
186 WixAssert.CompareLineByLine(new[] 168 WixAssert.CompareLineByLine(new[]
187 { 169 {
@@ -281,7 +263,7 @@ namespace WixToolsetTest.UI
281 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray()); 263 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray());
282 WixAssert.CompareLineByLine(new[] 264 WixAssert.CompareLineByLine(new[]
283 { 265 {
284 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t3", 266 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\t1\t1",
285 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray()); 267 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).ToArray());
286 WixAssert.CompareLineByLine(new[] 268 WixAssert.CompareLineByLine(new[]
287 { 269 {
@@ -332,8 +314,8 @@ namespace WixToolsetTest.UI
332 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray()); 314 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray());
333 WixAssert.CompareLineByLine(new[] 315 WixAssert.CompareLineByLine(new[]
334 { 316 {
335 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t3", 317 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X86\t1\t3",
336 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X86\tNOT WIXUI_DONTVALIDATEPATH\t2", 318 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X86\t1\t2",
337 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray()); 319 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray());
338 320
339 Assert.Empty(results.Where(result => result.Contains("LicenseAgreementDlg")).ToArray()); 321 Assert.Empty(results.Where(result => result.Contains("LicenseAgreementDlg")).ToArray());
@@ -361,21 +343,13 @@ namespace WixToolsetTest.UI
361 "Binary:WixUI_Bmp_Up\t[Binary data]", 343 "Binary:WixUI_Bmp_Up\t[Binary data]",
362 "Binary:WixUI_Ico_Exclam\t[Binary data]", 344 "Binary:WixUI_Ico_Exclam\t[Binary data]",
363 "Binary:WixUI_Ico_Info\t[Binary data]", 345 "Binary:WixUI_Ico_Info\t[Binary data]",
364 "Binary:WixUiCa_X64\t[Binary data]",
365 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 346 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
366 WixAssert.CompareLineByLine(new[] 347 Assert.Empty(results.Where(r => r.StartsWith("CustomAction:")).ToArray());
367 {
368 "CustomAction:WixUIValidatePath_X64\t65\tWixUiCa_X64\tValidatePath\t",
369 }, results.Where(r => r.StartsWith("CustomAction:")).ToArray());
370 WixAssert.CompareLineByLine(new[] 348 WixAssert.CompareLineByLine(new[]
371 { 349 {
372 "Property:WIXUI_INSTALLDIR\tINSTALLFOLDER", 350 "Property:WIXUI_INSTALLDIR\tINSTALLFOLDER",
373 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray()); 351 }, results.Where(r => r.StartsWith("Property:WIXUI")).ToArray());
374 WixAssert.CompareLineByLine(new[] 352 Assert.Empty(results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray());
375 {
376 "ControlEvent:BrowseDlg\tOK\tDoAction\tWixUIValidatePath_X64\tNOT WIXUI_DONTVALIDATEPATH\t3",
377 "ControlEvent:InstallDirDlg\tNext\tDoAction\tWixUIValidatePath_X64\tNOT WIXUI_DONTVALIDATEPATH\t2",
378 }, results.Where(result => result.StartsWith("ControlEvent:") && result.Contains("DoAction")).OrderBy(s => s).ToArray());
379 WixAssert.CompareLineByLine(new[] 353 WixAssert.CompareLineByLine(new[]
380 { 354 {
381 "InstallUISequence:WelcomeDlg\tNOT Installed OR PATCH\t1297", 355 "InstallUISequence:WelcomeDlg\tNOT Installed OR PATCH\t1297",