aboutsummaryrefslogtreecommitdiff
path: root/src/ext/UI/test
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2025-11-28 21:06:01 -0500
committerBob Arnson <bob@firegiant.com>2025-11-28 21:06:01 -0500
commit45db83da75f2f20dc0ce07f6cd8c273ad6ee324e (patch)
tree5ce29651e27c5ebd8887cfbc5f903b9ce4dc4560 /src/ext/UI/test
parentd2ef95ff2b492d8794613ed913a74c1b5f5b7762 (diff)
downloadwix-bob/WixUI_Advanced64.tar.gz
wix-bob/WixUI_Advanced64.tar.bz2
wix-bob/WixUI_Advanced64.zip
Support 64-bit install directory in WixUI_Advancedbob/WixUI_Advanced64
Fixes https://github.com/wixtoolset/issues/issues/2165
Diffstat (limited to 'src/ext/UI/test')
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/TestData/WixUI_Advanced/Package.wxs20
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs3
2 files changed, 7 insertions, 16 deletions
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 095a4546..5595e8af 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,16 +1,6 @@
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="WixUI_Advanced" 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 <File Source="example.txt" Directory="APPLICATIONFOLDER" />
4
5 <Feature Id="ProductFeature" Title="MsiPackage">
6 <ComponentGroupRef Id="ProductComponents" />
7 </Feature>
8
9 <ComponentGroup Id="ProductComponents" Directory="APPLICATIONFOLDER">
10 <Component>
11 <File Source="example.txt" />
12 </Component>
13 </ComponentGroup>
14 4
15 <ui:WixUI Id="WixUI_Advanced" /> 5 <ui:WixUI Id="WixUI_Advanced" />
16 <Property Id="ApplicationFolderName" Value="MyProgram" /> 6 <Property Id="ApplicationFolderName" Value="MyProgram" />
@@ -18,10 +8,8 @@
18 </Package> 8 </Package>
19 9
20 <Fragment> 10 <Fragment>
21 <StandardDirectory Id="ProgramFilesFolder"> 11 <DirectoryRef Id="INSTALLFOLDER">
22 <Directory Id="INSTALLFOLDER" Name="MsiPackage"> 12 <Directory Id="APPLICATIONFOLDER" />
23 <Directory Id="APPLICATIONFOLDER" /> 13 </DirectoryRef>
24 </Directory>
25 </StandardDirectory>
26 </Fragment> 14 </Fragment>
27</Wix> 15</Wix>
diff --git a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
index 9bc82fcf..59b4a01e 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
+++ b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
@@ -37,6 +37,7 @@ namespace WixToolsetTest.UI
37 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 37 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
38 WixAssert.CompareLineByLine(new[] 38 WixAssert.CompareLineByLine(new[]
39 { 39 {
40 "CustomAction:WixSetDefaultPerMachine64Folder\t51\tWixPerMachineFolder\t[ProgramFiles64Folder][ApplicationFolderName]\t",
40 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t", 41 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t",
41 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 42 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
42 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 43 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",
@@ -70,6 +71,7 @@ namespace WixToolsetTest.UI
70 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 71 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
71 WixAssert.CompareLineByLine(new[] 72 WixAssert.CompareLineByLine(new[]
72 { 73 {
74 "CustomAction:WixSetDefaultPerMachine64Folder\t51\tWixPerMachineFolder\t[ProgramFiles64Folder][ApplicationFolderName]\t",
73 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t", 75 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t",
74 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 76 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
75 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 77 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",
@@ -98,6 +100,7 @@ namespace WixToolsetTest.UI
98 }, results.Where(r => r.StartsWith("Binary:")).ToArray()); 100 }, results.Where(r => r.StartsWith("Binary:")).ToArray());
99 WixAssert.CompareLineByLine(new[] 101 WixAssert.CompareLineByLine(new[]
100 { 102 {
103 "CustomAction:WixSetDefaultPerMachine64Folder\t51\tWixPerMachineFolder\t[ProgramFiles64Folder][ApplicationFolderName]\t",
101 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t", 104 "CustomAction:WixSetDefaultPerMachineFolder\t51\tWixPerMachineFolder\t[ProgramFilesFolder][ApplicationFolderName]\t",
102 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t", 105 "CustomAction:WixSetDefaultPerUserFolder\t51\tWixPerUserFolder\t[LocalAppDataFolder]Apps\\[ApplicationFolderName]\t",
103 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t", 106 "CustomAction:WixSetPerMachineFolder\t51\tAPPLICATIONFOLDER\t[WixPerMachineFolder]\t",