From b337ce4678a5c66c7a2edc2bf9f87a71b4916b1b Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Tue, 6 Jan 2026 22:59:35 -0800 Subject: Provide Bundle Icon in BA container and update wixstdba to use it Fixes 8104 --- .../BalExtensionFixture.cs | 18 ++++++++++++++---- .../TestData/.Data/test.ico | Bin 0 -> 766 bytes .../TestData/WixStdBa/BootstrapperApplicationId.wxs | 3 ++- .../TestData/WixStdBa/Bundle.wxs | 3 ++- .../DisplayFilesInUseDialogConditionBundle.wxs | 3 ++- .../WixStdBa/DisplayInternalUIConditionBundle.wxs | 3 ++- 6 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/test.ico (limited to 'src/ext/Bal/test/WixToolsetTest.BootstrapperApplications') diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs index 576e7c6c..e599b8e2 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs @@ -24,7 +24,8 @@ namespace WixToolsetTest.BootstrapperApplications { var baseFolder = fs.GetFolder(); var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); - var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); + var bundleSourceFolder = TestData.Get(@"TestData", "WixStdBa"); + var dataFolder = TestData.Get(@"TestData", ".Data"); var intermediateFolder = Path.Combine(baseFolder, "obj"); var baFolderPath = Path.Combine(baseFolder, "ba"); var extractFolderPath = Path.Combine(baseFolder, "extract"); @@ -36,6 +37,7 @@ namespace WixToolsetTest.BootstrapperApplications "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), "-intermediateFolder", intermediateFolder, "-bindpath", Path.Combine(bundleSourceFolder, "data"), + "-bindpath", dataFolder, "-o", bundleFile, }); compileResult.AssertSuccess(); @@ -62,7 +64,8 @@ namespace WixToolsetTest.BootstrapperApplications { var baseFolder = fs.GetFolder(); var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); - var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); + var bundleSourceFolder = TestData.Get(@"TestData", "WixStdBa"); + var dataFolder = TestData.Get(@"TestData", ".Data"); var intermediateFolder = Path.Combine(baseFolder, "obj"); var baFolderPath = Path.Combine(baseFolder, "ba"); var extractFolderPath = Path.Combine(baseFolder, "extract"); @@ -74,6 +77,7 @@ namespace WixToolsetTest.BootstrapperApplications "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), "-intermediateFolder", intermediateFolder, "-bindpath", Path.Combine(bundleSourceFolder, "data"), + "-bindpath", dataFolder, "-o", bundleFile, }); compileResult.AssertSuccess(); @@ -101,6 +105,7 @@ namespace WixToolsetTest.BootstrapperApplications var baseFolder = fs.GetFolder(); var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); var bundleSourceFolder = TestData.Get("TestData", "WixStdBa"); + var dataFolder = TestData.Get(@"TestData", ".Data"); var intermediateFolder = Path.Combine(baseFolder, "obj"); var baFolderPath = Path.Combine(baseFolder, "ba"); var extractFolderPath = Path.Combine(baseFolder, "extract"); @@ -112,6 +117,7 @@ namespace WixToolsetTest.BootstrapperApplications "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), "-intermediateFolder", intermediateFolder, "-bindpath", Path.Combine(bundleSourceFolder, "data"), + "-bindpath", dataFolder, "-o", bundleFile, }); compileResult.AssertSuccess(); @@ -141,7 +147,8 @@ namespace WixToolsetTest.BootstrapperApplications { var baseFolder = fs.GetFolder(); var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); - var bundleSourceFolder = TestData.Get(@"TestData\Overridable"); + var bundleSourceFolder = TestData.Get(@"TestData", "Overridable"); + var dataFolder = TestData.Get(@"TestData", ".Data"); var intermediateFolder = Path.Combine(baseFolder, "obj"); var baFolderPath = Path.Combine(baseFolder, "ba"); var extractFolderPath = Path.Combine(baseFolder, "extract"); @@ -152,6 +159,7 @@ namespace WixToolsetTest.BootstrapperApplications Path.Combine(bundleSourceFolder, "Bundle.wxs"), "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), "-intermediateFolder", intermediateFolder, + "-bindpath", dataFolder, "-o", bundleFile, }); compileResult.AssertSuccess(); @@ -182,7 +190,8 @@ namespace WixToolsetTest.BootstrapperApplications { var baseFolder = fs.GetFolder(); var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); - var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); + var bundleSourceFolder = TestData.Get(@"TestData", "WixStdBa"); + var dataFolder = TestData.Get(@"TestData", ".Data"); var intermediateFolder = Path.Combine(baseFolder, "obj"); var compileResult = WixRunner.Execute(new[] @@ -191,6 +200,7 @@ namespace WixToolsetTest.BootstrapperApplications Path.Combine(bundleSourceFolder, "Bundle.wxs"), "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), "-intermediateFolder", intermediateFolder, + "-bindpath", dataFolder, "-o", bundleFile, }); compileResult.AssertSuccess(); diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/test.ico b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/test.ico new file mode 100644 index 00000000..906ce324 Binary files /dev/null and b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/test.ico differ diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/BootstrapperApplicationId.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/BootstrapperApplicationId.wxs index e1945f53..44c15999 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/BootstrapperApplicationId.wxs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/BootstrapperApplicationId.wxs @@ -1,7 +1,8 @@  - + diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs index c17b53ff..e0346900 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs @@ -1,7 +1,8 @@ - + diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayFilesInUseDialogConditionBundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayFilesInUseDialogConditionBundle.wxs index 1041eb39..098d6f83 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayFilesInUseDialogConditionBundle.wxs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayFilesInUseDialogConditionBundle.wxs @@ -1,7 +1,8 @@ - + diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs index f08cfe6a..2dea66fd 100644 --- a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs @@ -1,7 +1,8 @@  - + -- cgit v1.2.3-55-g6feb