diff options
| author | Rob Mensching <rob@firegiant.com> | 2024-03-06 14:48:10 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2024-03-07 10:55:57 -0800 |
| commit | 3d2d46f62fc01e2653d0251ad9703090574e7c41 (patch) | |
| tree | ffdf7dce6c646f38b5e3ad8325c2ce78ca891a1a /src/ext/Bal/test/WixToolsetTest.BootstrapperApplications | |
| parent | a8504dc4eb1c2d09965b0858699ac737336ef3c1 (diff) | |
| download | wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.gz wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.tar.bz2 wix-3d2d46f62fc01e2653d0251ad9703090574e7c41.zip | |
Better .nupkg names
Diffstat (limited to 'src/ext/Bal/test/WixToolsetTest.BootstrapperApplications')
29 files changed, 1107 insertions, 0 deletions
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs new file mode 100644 index 00000000..a9460008 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/BalExtensionFixture.cs | |||
| @@ -0,0 +1,262 @@ | |||
| 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 | |||
| 3 | namespace WixToolsetTest.BootstrapperApplications | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | using System.Linq; | ||
| 8 | using System.Xml; | ||
| 9 | using WixToolset.BootstrapperApplications; | ||
| 10 | using WixInternal.Core.TestPackage; | ||
| 11 | using WixInternal.TestSupport; | ||
| 12 | using Xunit; | ||
| 13 | |||
| 14 | public class BalExtensionFixture | ||
| 15 | { | ||
| 16 | [Fact] | ||
| 17 | public void CanBuildUsingDisplayInternalUICondition() | ||
| 18 | { | ||
| 19 | using (var fs = new DisposableFileSystem()) | ||
| 20 | { | ||
| 21 | var baseFolder = fs.GetFolder(); | ||
| 22 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 23 | var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); | ||
| 24 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 25 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 26 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 27 | |||
| 28 | var compileResult = WixRunner.Execute(new[] | ||
| 29 | { | ||
| 30 | "build", | ||
| 31 | Path.Combine(bundleSourceFolder, "DisplayInternalUIConditionBundle.wxs"), | ||
| 32 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 33 | "-intermediateFolder", intermediateFolder, | ||
| 34 | "-bindpath", Path.Combine(bundleSourceFolder, "data"), | ||
| 35 | "-o", bundleFile, | ||
| 36 | }); | ||
| 37 | compileResult.AssertSuccess(); | ||
| 38 | |||
| 39 | Assert.True(File.Exists(bundleFile)); | ||
| 40 | |||
| 41 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 42 | extractResult.AssertSuccess(); | ||
| 43 | |||
| 44 | var balPackageInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixBalPackageInfo"); | ||
| 45 | WixAssert.CompareLineByLine(new string[] | ||
| 46 | { | ||
| 47 | "<WixBalPackageInfo PackageId='test.msi' DisplayInternalUICondition='1' />", | ||
| 48 | }, balPackageInfos); | ||
| 49 | |||
| 50 | Assert.True(File.Exists(Path.Combine(baFolderPath, "thm.wxl"))); | ||
| 51 | } | ||
| 52 | } | ||
| 53 | |||
| 54 | [Fact] | ||
| 55 | public void CanBuildUsingOverridable() | ||
| 56 | { | ||
| 57 | using (var fs = new DisposableFileSystem()) | ||
| 58 | { | ||
| 59 | var baseFolder = fs.GetFolder(); | ||
| 60 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 61 | var bundleSourceFolder = TestData.Get(@"TestData\Overridable"); | ||
| 62 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 63 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 64 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 65 | |||
| 66 | var compileResult = WixRunner.Execute(new[] | ||
| 67 | { | ||
| 68 | "build", | ||
| 69 | Path.Combine(bundleSourceFolder, "Bundle.wxs"), | ||
| 70 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 71 | "-intermediateFolder", intermediateFolder, | ||
| 72 | "-o", bundleFile, | ||
| 73 | }); | ||
| 74 | compileResult.AssertSuccess(); | ||
| 75 | |||
| 76 | Assert.True(File.Exists(bundleFile)); | ||
| 77 | |||
| 78 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 79 | extractResult.AssertSuccess(); | ||
| 80 | |||
| 81 | var balCommandLines = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixStdbaCommandLine"); | ||
| 82 | WixAssert.CompareLineByLine(new[] | ||
| 83 | { | ||
| 84 | "<WixStdbaCommandLine VariableType='caseInsensitive' />", | ||
| 85 | }, balCommandLines); | ||
| 86 | |||
| 87 | var balOverridableVariables = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixStdbaOverridableVariable"); | ||
| 88 | WixAssert.CompareLineByLine(new[] | ||
| 89 | { | ||
| 90 | "<WixStdbaOverridableVariable Name='TEST1' />", | ||
| 91 | }, balOverridableVariables); | ||
| 92 | } | ||
| 93 | } | ||
| 94 | |||
| 95 | [Fact] | ||
| 96 | public void CanBuildUsingWixStdBa() | ||
| 97 | { | ||
| 98 | using (var fs = new DisposableFileSystem()) | ||
| 99 | { | ||
| 100 | var baseFolder = fs.GetFolder(); | ||
| 101 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 102 | var bundleSourceFolder = TestData.Get(@"TestData\WixStdBa"); | ||
| 103 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 104 | |||
| 105 | var compileResult = WixRunner.Execute(new[] | ||
| 106 | { | ||
| 107 | "build", | ||
| 108 | Path.Combine(bundleSourceFolder, "Bundle.wxs"), | ||
| 109 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 110 | "-intermediateFolder", intermediateFolder, | ||
| 111 | "-o", bundleFile, | ||
| 112 | }); | ||
| 113 | compileResult.AssertSuccess(); | ||
| 114 | |||
| 115 | Assert.True(File.Exists(bundleFile)); | ||
| 116 | } | ||
| 117 | } | ||
| 118 | |||
| 119 | //[Fact] | ||
| 120 | //public void CanBuildUsingMBAWithAlwaysInstallPrereqs() | ||
| 121 | //{ | ||
| 122 | // using (var fs = new DisposableFileSystem()) | ||
| 123 | // { | ||
| 124 | // var baseFolder = fs.GetFolder(); | ||
| 125 | // var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 126 | // var bundleSourceFolder = TestData.Get("TestData", "MBA"); | ||
| 127 | // var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 128 | // var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 129 | // var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 130 | |||
| 131 | // var compileResult = WixRunner.Execute(new[] | ||
| 132 | // { | ||
| 133 | // "build", | ||
| 134 | // Path.Combine(bundleSourceFolder, "AlwaysInstallPrereqsBundle.wxs"), | ||
| 135 | // "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 136 | // "-intermediateFolder", intermediateFolder, | ||
| 137 | // "-o", bundleFile, | ||
| 138 | // }); | ||
| 139 | |||
| 140 | // compileResult.AssertSuccess(); | ||
| 141 | |||
| 142 | // Assert.True(File.Exists(bundleFile)); | ||
| 143 | |||
| 144 | // var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 145 | // extractResult.AssertSuccess(); | ||
| 146 | |||
| 147 | // var wixPrereqOptionsElements = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixPrereqOptions"); | ||
| 148 | // WixAssert.CompareLineByLine(new[] | ||
| 149 | // { | ||
| 150 | // "<WixPrereqOptions AlwaysInstallPrereqs='1' />", | ||
| 151 | // }, wixPrereqOptionsElements); | ||
| 152 | |||
| 153 | // var wixPrereqInformationElements = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixPrereqInformation"); | ||
| 154 | // WixAssert.CompareLineByLine(new[] | ||
| 155 | // { | ||
| 156 | // "<WixPrereqInformation PackageId='wixnative.exe' />", | ||
| 157 | // }, wixPrereqInformationElements); | ||
| 158 | // } | ||
| 159 | //} | ||
| 160 | |||
| 161 | [Fact] | ||
| 162 | public void CannotBuildUsingMBAWithNoPrereqs() | ||
| 163 | { | ||
| 164 | using (var fs = new DisposableFileSystem()) | ||
| 165 | { | ||
| 166 | var baseFolder = fs.GetFolder(); | ||
| 167 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 168 | var bundleSourceFolder = TestData.Get(@"TestData", "MBA"); | ||
| 169 | var dataFolder = TestData.Get(@"TestData", ".Data"); | ||
| 170 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 171 | |||
| 172 | var compileResult = WixRunner.Execute(new[] | ||
| 173 | { | ||
| 174 | "build", | ||
| 175 | Path.Combine(bundleSourceFolder, "Bundle.wxs"), | ||
| 176 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 177 | "-intermediateFolder", intermediateFolder, | ||
| 178 | "-bindpath", dataFolder, | ||
| 179 | "-o", bundleFile, | ||
| 180 | }); | ||
| 181 | |||
| 182 | WixAssert.CompareLineByLine(new[] | ||
| 183 | { | ||
| 184 | "The WixManagedBootstrapperApplicationHost element has been deprecated.", | ||
| 185 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 186 | Assert.Equal(1130, compileResult.ExitCode); | ||
| 187 | |||
| 188 | Assert.False(File.Exists(bundleFile)); | ||
| 189 | Assert.False(File.Exists(Path.Combine(intermediateFolder, "test.exe"))); | ||
| 190 | } | ||
| 191 | } | ||
| 192 | |||
| 193 | [Fact] | ||
| 194 | public void CannotBuildUsingDncbaMissingBAFactoryPayload() | ||
| 195 | { | ||
| 196 | using (var fs = new DisposableFileSystem()) | ||
| 197 | { | ||
| 198 | var baseFolder = fs.GetFolder(); | ||
| 199 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 200 | var bundleSourceFolder = TestData.Get(@"TestData\Dncba"); | ||
| 201 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 202 | |||
| 203 | var compileResult = WixRunner.Execute(new[] | ||
| 204 | { | ||
| 205 | "build", | ||
| 206 | Path.Combine(bundleSourceFolder, "Bundle.wxs"), | ||
| 207 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 208 | "-intermediateFolder", intermediateFolder, | ||
| 209 | "-o", bundleFile, | ||
| 210 | }); | ||
| 211 | |||
| 212 | WixAssert.CompareLineByLine(new[] | ||
| 213 | { | ||
| 214 | "The WixDotNetCoreBootstrapperApplicationHost element has been deprecated.", | ||
| 215 | "The BootstrapperApplication element's Name or SourceFile attribute was not found; one of these is required." | ||
| 216 | }, compileResult.Messages.Select(x => x.ToString()).ToArray()); | ||
| 217 | Assert.Equal(44, compileResult.ExitCode); | ||
| 218 | |||
| 219 | Assert.False(File.Exists(bundleFile)); | ||
| 220 | Assert.False(File.Exists(Path.Combine(intermediateFolder, "test.exe"))); | ||
| 221 | } | ||
| 222 | } | ||
| 223 | |||
| 224 | [Fact] | ||
| 225 | public void CannotBuildUsingOverridableWrongCase() | ||
| 226 | { | ||
| 227 | using (var fs = new DisposableFileSystem()) | ||
| 228 | { | ||
| 229 | var baseFolder = fs.GetFolder(); | ||
| 230 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 231 | var bundleSourceFolder = TestData.Get(@"TestData"); | ||
| 232 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 233 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 234 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 235 | |||
| 236 | var result = WixRunner.Execute(new[] | ||
| 237 | { | ||
| 238 | "build", | ||
| 239 | Path.Combine(bundleSourceFolder, "Overridable", "WrongCaseBundle.wxs"), | ||
| 240 | "-loc", Path.Combine(bundleSourceFolder, "Overridable", "WrongCaseBundle.wxl"), | ||
| 241 | "-bindpath", Path.Combine(bundleSourceFolder, "WixStdBa", "Data"), | ||
| 242 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 243 | "-intermediateFolder", intermediateFolder, | ||
| 244 | "-o", bundleFile, | ||
| 245 | }); | ||
| 246 | |||
| 247 | Assert.InRange(result.ExitCode, 2, Int32.MaxValue); | ||
| 248 | |||
| 249 | var messages = result.Messages.Select(m => m.ToString()).ToList(); | ||
| 250 | messages.Sort(); | ||
| 251 | |||
| 252 | WixAssert.CompareLineByLine(new[] | ||
| 253 | { | ||
| 254 | "bal:Condition/@Condition contains the built-in Variable 'WixBundleAction', which is not available when it is evaluated. (Unavailable Variables are: 'WixBundleAction'.). Rewrite the condition to avoid Variables that are never valid during its evaluation.", | ||
| 255 | "Overridable variable 'TEST1' collides with 'Test1' with Bundle/@CommandLineVariables value 'caseInsensitive'.", | ||
| 256 | "The *Package/@bal:DisplayInternalUICondition attribute's value '=' is not a valid bundle condition.", | ||
| 257 | "The location of the Variable related to the previous error.", | ||
| 258 | }, messages.ToArray()); | ||
| 259 | } | ||
| 260 | } | ||
| 261 | } | ||
| 262 | } | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/InternalUIBAFixture.cs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/InternalUIBAFixture.cs new file mode 100644 index 00000000..7e64c13f --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/InternalUIBAFixture.cs | |||
| @@ -0,0 +1,519 @@ | |||
| 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 | |||
| 3 | namespace WixToolsetTest.BootstrapperApplications | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.IO; | ||
| 7 | using System.Linq; | ||
| 8 | using WixInternal.TestSupport; | ||
| 9 | using WixInternal.Core.TestPackage; | ||
| 10 | using Xunit; | ||
| 11 | |||
| 12 | public class InternalUIBAFixture | ||
| 13 | { | ||
| 14 | [Fact] | ||
| 15 | public void CanBuildUsingWixIuiBa() | ||
| 16 | { | ||
| 17 | using (var fs = new DisposableFileSystem()) | ||
| 18 | { | ||
| 19 | var baseFolder = fs.GetFolder(); | ||
| 20 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 21 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 22 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 23 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 24 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 25 | |||
| 26 | var compileResult = WixRunner.Execute(new[] | ||
| 27 | { | ||
| 28 | "build", | ||
| 29 | Path.Combine(bundleSourceFolder, "SinglePrimaryPackage.wxs"), | ||
| 30 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 31 | "-intermediateFolder", intermediateFolder, | ||
| 32 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 33 | "-o", bundleFile, | ||
| 34 | }); | ||
| 35 | compileResult.AssertSuccess(); | ||
| 36 | |||
| 37 | Assert.True(File.Exists(bundleFile)); | ||
| 38 | |||
| 39 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 40 | extractResult.AssertSuccess(); | ||
| 41 | |||
| 42 | var balPackageInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixBalPackageInfo"); | ||
| 43 | WixAssert.CompareLineByLine(new string[] | ||
| 44 | { | ||
| 45 | "<WixBalPackageInfo PackageId='test.msi' PrimaryPackageType='default' />", | ||
| 46 | }, balPackageInfos); | ||
| 47 | |||
| 48 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.thm"))); | ||
| 49 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.wxl"))); | ||
| 50 | } | ||
| 51 | } | ||
| 52 | |||
| 53 | [Fact] | ||
| 54 | public void CanBuildUsingWixIuiBaWithUrlPrereqPackage() | ||
| 55 | { | ||
| 56 | using (var fs = new DisposableFileSystem()) | ||
| 57 | { | ||
| 58 | var baseFolder = fs.GetFolder(); | ||
| 59 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 60 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 61 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 62 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 63 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 64 | |||
| 65 | var compileResult = WixRunner.Execute(new[] | ||
| 66 | { | ||
| 67 | "build", | ||
| 68 | Path.Combine(bundleSourceFolder, "UrlPrereqPackage.wxs"), | ||
| 69 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 70 | "-intermediateFolder", intermediateFolder, | ||
| 71 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 72 | "-o", bundleFile, | ||
| 73 | }); | ||
| 74 | compileResult.AssertSuccess(); | ||
| 75 | |||
| 76 | Assert.True(File.Exists(bundleFile)); | ||
| 77 | |||
| 78 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 79 | extractResult.AssertSuccess(); | ||
| 80 | |||
| 81 | var balPackageInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixBalPackageInfo"); | ||
| 82 | WixAssert.CompareLineByLine(new string[] | ||
| 83 | { | ||
| 84 | "<WixBalPackageInfo PackageId='test.msi' PrimaryPackageType='default' />", | ||
| 85 | }, balPackageInfos); | ||
| 86 | |||
| 87 | var mbaPrereqInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixPrereqInformation"); | ||
| 88 | WixAssert.CompareLineByLine(new[] | ||
| 89 | { | ||
| 90 | "<WixPrereqInformation PackageId='wixnative.exe' LicenseUrl='https://www.mysite.com/prereqterms' />", | ||
| 91 | }, mbaPrereqInfos); | ||
| 92 | |||
| 93 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.thm"))); | ||
| 94 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.wxl"))); | ||
| 95 | } | ||
| 96 | } | ||
| 97 | |||
| 98 | [Fact] | ||
| 99 | public void CanBuildUsingWixIuiBaWithImplicitPrimaryPackage() | ||
| 100 | { | ||
| 101 | using (var fs = new DisposableFileSystem()) | ||
| 102 | { | ||
| 103 | var baseFolder = fs.GetFolder(); | ||
| 104 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 105 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 106 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 107 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 108 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 109 | |||
| 110 | var compileResult = WixRunner.Execute(new[] | ||
| 111 | { | ||
| 112 | "build", | ||
| 113 | Path.Combine(bundleSourceFolder, "ImplicitPrimaryPackage.wxs"), | ||
| 114 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 115 | "-intermediateFolder", intermediateFolder, | ||
| 116 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 117 | "-o", bundleFile, | ||
| 118 | }); | ||
| 119 | compileResult.AssertSuccess(); | ||
| 120 | |||
| 121 | Assert.True(File.Exists(bundleFile)); | ||
| 122 | |||
| 123 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 124 | extractResult.AssertSuccess(); | ||
| 125 | |||
| 126 | var balPackageInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixBalPackageInfo"); | ||
| 127 | WixAssert.CompareLineByLine(new string[] | ||
| 128 | { | ||
| 129 | "<WixBalPackageInfo PackageId='test.msi' PrimaryPackageType='default' />", | ||
| 130 | }, balPackageInfos); | ||
| 131 | |||
| 132 | var mbaPrereqInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixPrereqInformation"); | ||
| 133 | WixAssert.CompareLineByLine(new[] | ||
| 134 | { | ||
| 135 | "<WixPrereqInformation PackageId='wixnative.exe' />", | ||
| 136 | }, mbaPrereqInfos); | ||
| 137 | |||
| 138 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.thm"))); | ||
| 139 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.wxl"))); | ||
| 140 | } | ||
| 141 | } | ||
| 142 | |||
| 143 | [Fact] | ||
| 144 | public void CanBuildUsingWixIuiBaWithWarnings() | ||
| 145 | { | ||
| 146 | using (var fs = new DisposableFileSystem()) | ||
| 147 | { | ||
| 148 | var baseFolder = fs.GetFolder(); | ||
| 149 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 150 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 151 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 152 | var baFolderPath = Path.Combine(baseFolder, "ba"); | ||
| 153 | var extractFolderPath = Path.Combine(baseFolder, "extract"); | ||
| 154 | |||
| 155 | var compileResult = WixRunner.Execute(warningsAsErrors: false, new[] | ||
| 156 | { | ||
| 157 | "build", | ||
| 158 | Path.Combine(bundleSourceFolder, "IuiBaWarnings.wxs"), | ||
| 159 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 160 | "-intermediateFolder", intermediateFolder, | ||
| 161 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 162 | "-o", bundleFile, | ||
| 163 | }); | ||
| 164 | |||
| 165 | WixAssert.CompareLineByLine(new[] | ||
| 166 | { | ||
| 167 | "WixInternalUIBootstrapperApplication does not support the value of 'force' for Cache on prereq packages. Prereq packages are only cached when they need to be installed.", | ||
| 168 | "WixInternalUIBootstrapperApplication ignores InstallCondition for the primary package so that the MSI UI is always shown.", | ||
| 169 | "WixInternalUIBootstrapperApplication ignores DisplayInternalUICondition for the primary package so that the MSI UI is always shown.", | ||
| 170 | "When using WixInternalUIBootstrapperApplication, all prereq packages should be before the primary package in the chain. The prereq packages are always installed before the primary package.", | ||
| 171 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 172 | |||
| 173 | compileResult.AssertSuccess(); | ||
| 174 | |||
| 175 | Assert.True(File.Exists(bundleFile)); | ||
| 176 | |||
| 177 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFile, baFolderPath, extractFolderPath); | ||
| 178 | extractResult.AssertSuccess(); | ||
| 179 | |||
| 180 | var balPackageInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixBalPackageInfo"); | ||
| 181 | WixAssert.CompareLineByLine(new string[] | ||
| 182 | { | ||
| 183 | "<WixBalPackageInfo PackageId='test.msi' DisplayInternalUICondition='DISPLAYTEST' PrimaryPackageType='default' />", | ||
| 184 | }, balPackageInfos); | ||
| 185 | |||
| 186 | var mbaPrereqInfos = extractResult.GetBADataTestXmlLines("/ba:BootstrapperApplicationData/ba:WixPrereqInformation"); | ||
| 187 | WixAssert.CompareLineByLine(new[] | ||
| 188 | { | ||
| 189 | "<WixPrereqInformation PackageId='wixnative.exe' />", | ||
| 190 | }, mbaPrereqInfos); | ||
| 191 | |||
| 192 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.thm"))); | ||
| 193 | Assert.True(File.Exists(Path.Combine(baFolderPath, "wixpreq.wxl"))); | ||
| 194 | } | ||
| 195 | } | ||
| 196 | |||
| 197 | [Fact] | ||
| 198 | public void CannotBuildUsingWixIuiBaWithAllPrereqPackages() | ||
| 199 | { | ||
| 200 | using (var fs = new DisposableFileSystem()) | ||
| 201 | { | ||
| 202 | var baseFolder = fs.GetFolder(); | ||
| 203 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 204 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 205 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 206 | |||
| 207 | var compileResult = WixRunner.Execute(new[] | ||
| 208 | { | ||
| 209 | "build", | ||
| 210 | Path.Combine(bundleSourceFolder, "AllPrereqPackages.wxs"), | ||
| 211 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 212 | "-intermediateFolder", intermediateFolder, | ||
| 213 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 214 | "-o", bundleFile, | ||
| 215 | }); | ||
| 216 | |||
| 217 | WixAssert.CompareLineByLine(new[] | ||
| 218 | { | ||
| 219 | "When using WixInternalUIBootstrapperApplication, there must be one package with bal:PrimaryPackageType=\"default\".", | ||
| 220 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 221 | |||
| 222 | Assert.Equal(6808, compileResult.ExitCode); | ||
| 223 | } | ||
| 224 | } | ||
| 225 | |||
| 226 | [Fact] | ||
| 227 | public void CannotBuildUsingWixIuiBaWithImplicitNonMsiPrimaryPackage() | ||
| 228 | { | ||
| 229 | using (var fs = new DisposableFileSystem()) | ||
| 230 | { | ||
| 231 | var baseFolder = fs.GetFolder(); | ||
| 232 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 233 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 234 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 235 | |||
| 236 | var compileResult = WixRunner.Execute(new[] | ||
| 237 | { | ||
| 238 | "build", | ||
| 239 | Path.Combine(bundleSourceFolder, "ImplicitNonMsiPrimaryPackage.wxs"), | ||
| 240 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 241 | "-intermediateFolder", intermediateFolder, | ||
| 242 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 243 | "-o", bundleFile, | ||
| 244 | }); | ||
| 245 | |||
| 246 | WixAssert.CompareLineByLine(new[] | ||
| 247 | { | ||
| 248 | "When using WixInternalUIBootstrapperApplication, packages must either be non-permanent and have the bal:PrimaryPackageType attribute, or be permanent and have the bal:PrereqPackage attribute set to 'yes'.", | ||
| 249 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 250 | |||
| 251 | Assert.Equal(6811, compileResult.ExitCode); | ||
| 252 | } | ||
| 253 | } | ||
| 254 | |||
| 255 | [Fact] | ||
| 256 | public void CannotBuildUsingWixIuiBaWithImplicitPrimaryPackageEnableFeatureSelection() | ||
| 257 | { | ||
| 258 | using (var fs = new DisposableFileSystem()) | ||
| 259 | { | ||
| 260 | var baseFolder = fs.GetFolder(); | ||
| 261 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 262 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 263 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 264 | |||
| 265 | var compileResult = WixRunner.Execute(new[] | ||
| 266 | { | ||
| 267 | "build", | ||
| 268 | Path.Combine(bundleSourceFolder, "ImplicitPrimaryPackageEnableFeatureSelection.wxs"), | ||
| 269 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 270 | "-intermediateFolder", intermediateFolder, | ||
| 271 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 272 | "-o", bundleFile, | ||
| 273 | }); | ||
| 274 | |||
| 275 | WixAssert.CompareLineByLine(new[] | ||
| 276 | { | ||
| 277 | "When using WixInternalUIBootstrapperApplication, packages must either be non-permanent and have the bal:PrimaryPackageType attribute, or be permanent and have the bal:PrereqPackage attribute set to 'yes'.", | ||
| 278 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 279 | |||
| 280 | Assert.Equal(6811, compileResult.ExitCode); | ||
| 281 | } | ||
| 282 | } | ||
| 283 | |||
| 284 | [Fact] | ||
| 285 | public void CannotBuildUsingWixIuiBaWithMultipleNonPermanentNonPrimaryPackages() | ||
| 286 | { | ||
| 287 | using (var fs = new DisposableFileSystem()) | ||
| 288 | { | ||
| 289 | var baseFolder = fs.GetFolder(); | ||
| 290 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 291 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 292 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 293 | |||
| 294 | var compileResult = WixRunner.Execute(new[] | ||
| 295 | { | ||
| 296 | "build", | ||
| 297 | Path.Combine(bundleSourceFolder, "MultipleNonPermanentNonPrimaryPackages.wxs"), | ||
| 298 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 299 | "-intermediateFolder", intermediateFolder, | ||
| 300 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 301 | "-o", bundleFile, | ||
| 302 | }); | ||
| 303 | |||
| 304 | WixAssert.CompareLineByLine(new[] | ||
| 305 | { | ||
| 306 | "When using WixInternalUIBootstrapperApplication, packages must either be non-permanent and have the bal:PrimaryPackageType attribute, or be permanent and have the bal:PrereqPackage attribute set to 'yes'.", | ||
| 307 | "When using WixInternalUIBootstrapperApplication, packages must either be non-permanent and have the bal:PrimaryPackageType attribute, or be permanent and have the bal:PrereqPackage attribute set to 'yes'.", | ||
| 308 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 309 | |||
| 310 | Assert.Equal(6811, compileResult.ExitCode); | ||
| 311 | } | ||
| 312 | } | ||
| 313 | |||
| 314 | [Fact] | ||
| 315 | public void CannotBuildUsingWixIuiBaWithMultiplePrimaryPackagesOfSameType() | ||
| 316 | { | ||
| 317 | using (var fs = new DisposableFileSystem()) | ||
| 318 | { | ||
| 319 | var baseFolder = fs.GetFolder(); | ||
| 320 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 321 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 322 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 323 | |||
| 324 | var compileResult = WixRunner.Execute(new[] | ||
| 325 | { | ||
| 326 | "build", | ||
| 327 | Path.Combine(bundleSourceFolder, "MultipleDefaultPrimaryPackages.wxs"), | ||
| 328 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 329 | "-intermediateFolder", intermediateFolder, | ||
| 330 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 331 | "-o", bundleFile, | ||
| 332 | }); | ||
| 333 | |||
| 334 | WixAssert.CompareLineByLine(new[] | ||
| 335 | { | ||
| 336 | "There may only be one package in the bundle with PrimaryPackageType of 'default'.", | ||
| 337 | "The location of the package related to the previous error.", | ||
| 338 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 339 | |||
| 340 | Assert.Equal(6810, compileResult.ExitCode); | ||
| 341 | } | ||
| 342 | } | ||
| 343 | |||
| 344 | [Fact] | ||
| 345 | public void CannotBuildUsingWixIuiBaWithNoDefaultPrimaryPackage() | ||
| 346 | { | ||
| 347 | using (var fs = new DisposableFileSystem()) | ||
| 348 | { | ||
| 349 | var baseFolder = fs.GetFolder(); | ||
| 350 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 351 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 352 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 353 | |||
| 354 | var compileResult = WixRunner.Execute(new[] | ||
| 355 | { | ||
| 356 | "build", | ||
| 357 | Path.Combine(bundleSourceFolder, "NoDefaultPrimaryPackage.wxs"), | ||
| 358 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 359 | "-intermediateFolder", intermediateFolder, | ||
| 360 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 361 | "-o", bundleFile, | ||
| 362 | }); | ||
| 363 | |||
| 364 | WixAssert.CompareLineByLine(new[] | ||
| 365 | { | ||
| 366 | "When using WixInternalUIBootstrapperApplication, there must be one package with bal:PrimaryPackageType=\"default\".", | ||
| 367 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 368 | |||
| 369 | Assert.Equal(6808, compileResult.ExitCode); | ||
| 370 | } | ||
| 371 | } | ||
| 372 | |||
| 373 | [Fact] | ||
| 374 | public void CannotBuildUsingWixIuiBaWithNonMsiPrimaryPackage() | ||
| 375 | { | ||
| 376 | using (var fs = new DisposableFileSystem()) | ||
| 377 | { | ||
| 378 | var baseFolder = fs.GetFolder(); | ||
| 379 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 380 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 381 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 382 | |||
| 383 | var compileResult = WixRunner.Execute(new[] | ||
| 384 | { | ||
| 385 | "build", | ||
| 386 | Path.Combine(bundleSourceFolder, "NonMsiPrimaryPackage.wxs"), | ||
| 387 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 388 | "-intermediateFolder", intermediateFolder, | ||
| 389 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 390 | "-o", bundleFile, | ||
| 391 | }); | ||
| 392 | |||
| 393 | WixAssert.CompareLineByLine(new[] | ||
| 394 | { | ||
| 395 | "When using WixInternalUIBootstrapperApplication, each primary package must be an MsiPackage.", | ||
| 396 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 397 | |||
| 398 | Assert.Equal(6814, compileResult.ExitCode); | ||
| 399 | } | ||
| 400 | } | ||
| 401 | |||
| 402 | [Fact] | ||
| 403 | public void CannotBuildUsingWixIuiBaWithNonPermanentPrereqPackage() | ||
| 404 | { | ||
| 405 | using (var fs = new DisposableFileSystem()) | ||
| 406 | { | ||
| 407 | var baseFolder = fs.GetFolder(); | ||
| 408 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 409 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 410 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 411 | |||
| 412 | var compileResult = WixRunner.Execute(new[] | ||
| 413 | { | ||
| 414 | "build", | ||
| 415 | Path.Combine(bundleSourceFolder, "NonPermanentPrereqPackage.wxs"), | ||
| 416 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 417 | "-intermediateFolder", intermediateFolder, | ||
| 418 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 419 | "-o", bundleFile, | ||
| 420 | }); | ||
| 421 | |||
| 422 | WixAssert.CompareLineByLine(new[] | ||
| 423 | { | ||
| 424 | "When using WixInternalUIBootstrapperApplication and bal:PrereqPackage is set to 'yes', the package must be permanent.", | ||
| 425 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 426 | |||
| 427 | Assert.Equal(6812, compileResult.ExitCode); | ||
| 428 | } | ||
| 429 | } | ||
| 430 | |||
| 431 | [Fact] | ||
| 432 | public void CannotBuildUsingWixIuiBaWithPermanentPrimaryPackage() | ||
| 433 | { | ||
| 434 | using (var fs = new DisposableFileSystem()) | ||
| 435 | { | ||
| 436 | var baseFolder = fs.GetFolder(); | ||
| 437 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 438 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 439 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 440 | |||
| 441 | var compileResult = WixRunner.Execute(new[] | ||
| 442 | { | ||
| 443 | "build", | ||
| 444 | Path.Combine(bundleSourceFolder, "PermanentPrimaryPackage.wxs"), | ||
| 445 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 446 | "-intermediateFolder", intermediateFolder, | ||
| 447 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 448 | "-o", bundleFile, | ||
| 449 | }); | ||
| 450 | |||
| 451 | WixAssert.CompareLineByLine(new[] | ||
| 452 | { | ||
| 453 | "When using WixInternalUIBootstrapperApplication, packages with the bal:PrimaryPackageType attribute must not be permanent.", | ||
| 454 | "When using WixInternalUIBootstrapperApplication, there must be one package with bal:PrimaryPackageType=\"default\".", | ||
| 455 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 456 | |||
| 457 | Assert.Equal(6808, compileResult.ExitCode); | ||
| 458 | } | ||
| 459 | } | ||
| 460 | |||
| 461 | [Fact] | ||
| 462 | public void CannotBuildUsingWixIuiBaWithPrimaryPackageEnableFeatureSelection() | ||
| 463 | { | ||
| 464 | using (var fs = new DisposableFileSystem()) | ||
| 465 | { | ||
| 466 | var baseFolder = fs.GetFolder(); | ||
| 467 | var bundleFile = Path.Combine(baseFolder, "bin", "test.exe"); | ||
| 468 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 469 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 470 | |||
| 471 | var compileResult = WixRunner.Execute(new[] | ||
| 472 | { | ||
| 473 | "build", | ||
| 474 | Path.Combine(bundleSourceFolder, "PrimaryPackageEnableFeatureSelection.wxs"), | ||
| 475 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 476 | "-intermediateFolder", intermediateFolder, | ||
| 477 | "-bindpath", TestData.Get(@"TestData\WixStdBa\Data"), | ||
| 478 | "-o", bundleFile, | ||
| 479 | }); | ||
| 480 | |||
| 481 | WixAssert.CompareLineByLine(new[] | ||
| 482 | { | ||
| 483 | "When using WixInternalUIBootstrapperApplication, primary packages must not have feature selection enabled because it interferes with the user selecting feature through the MSI UI.", | ||
| 484 | "When using WixInternalUIBootstrapperApplication, there must be one package with bal:PrimaryPackageType=\"default\".", | ||
| 485 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 486 | |||
| 487 | Assert.Equal(6808, compileResult.ExitCode); | ||
| 488 | } | ||
| 489 | } | ||
| 490 | |||
| 491 | [Fact] | ||
| 492 | public void CannotBuildUsingWixIuiBaWithPrimaryPrereqPackage() | ||
| 493 | { | ||
| 494 | using (var fs = new DisposableFileSystem()) | ||
| 495 | { | ||
| 496 | var baseFolder = fs.GetFolder(); | ||
| 497 | var wixlibFile = Path.Combine(baseFolder, "bin", "test.wixlib"); | ||
| 498 | var bundleSourceFolder = TestData.Get(@"TestData\WixIuiBa"); | ||
| 499 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 500 | |||
| 501 | var compileResult = WixRunner.Execute(new[] | ||
| 502 | { | ||
| 503 | "build", | ||
| 504 | Path.Combine(bundleSourceFolder, "PrimaryPrereqPackage.wxs"), | ||
| 505 | "-ext", TestData.Get(@"WixToolset.BootstrapperApplications.wixext.dll"), | ||
| 506 | "-intermediateFolder", intermediateFolder, | ||
| 507 | "-o", wixlibFile, | ||
| 508 | }); | ||
| 509 | |||
| 510 | WixAssert.CompareLineByLine(new[] | ||
| 511 | { | ||
| 512 | "The MsiPackage/@PrereqPackage attribute's value, 'yes', cannot be specified with attribute PrimaryPackageType present.", | ||
| 513 | }, compileResult.Messages.Select(m => m.ToString()).ToArray()); | ||
| 514 | |||
| 515 | Assert.Equal(193, compileResult.ExitCode); | ||
| 516 | } | ||
| 517 | } | ||
| 518 | } | ||
| 519 | } | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/fake.exe b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/fake.exe new file mode 100644 index 00000000..f27639e9 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/.Data/fake.exe | |||
| @@ -0,0 +1 @@ | |||
| This is fake.exe \ No newline at end of file | |||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Dncba/Bundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Dncba/Bundle.wxs new file mode 100644 index 00000000..5b25da8c --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Dncba/Bundle.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixDotNetCoreBootstrapperApplicationHost SelfContainedDeployment="yes" /> | ||
| 7 | <Payload SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 8 | </BootstrapperApplication> | ||
| 9 | <Chain> | ||
| 10 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/AlwaysInstallPrereqsBundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/AlwaysInstallPrereqsBundle.wxs new file mode 100644 index 00000000..685fef7b --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/AlwaysInstallPrereqsBundle.wxs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="AlwaysInstallPrereqsBundle" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{36E9E102-E0E4-4A91-941D-6681A49216E6}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixManagedBootstrapperApplicationHost AlwaysInstallPrereqs="yes" /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage bal:PrereqPackage="yes" Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | </Chain> | ||
| 11 | </Bundle> | ||
| 12 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/Bundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/Bundle.wxs new file mode 100644 index 00000000..59be4bd4 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/MBA/Bundle.wxs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
| 5 | <BootstrapperApplication SourceFile="fake.exe"> | ||
| 6 | <bal:WixManagedBootstrapperApplicationHost /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | </Chain> | ||
| 11 | </Bundle> | ||
| 12 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/Bundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/Bundle.wxs new file mode 100644 index 00000000..1274826f --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/Bundle.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2" bal:CommandLineVariables="caseInsensitive"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" Theme="hyperlinkLicense" /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Variable Name="TEST1" bal:Overridable="yes" /> | ||
| 9 | <Chain> | ||
| 10 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxl b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxl new file mode 100644 index 00000000..0667c3cb --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxl | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | <WixLocalization xmlns="http://wixtoolset.org/schemas/v4/wxl" Culture="en-US"> | ||
| 2 | <String Id="NonsenseDetectCondition" Value="WixBundleAction = 4" /> | ||
| 3 | <String Id="NonsensePlanCondition" Value="=" /> | ||
| 4 | </WixLocalization> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxs new file mode 100644 index 00000000..67dfc589 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/Overridable/WrongCaseBundle.wxs | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2" bal:CommandLineVariables="caseInsensitive"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" Theme="hyperlinkLicense" /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Variable Name="Test1" bal:Overridable="yes" /> | ||
| 9 | <Variable Name="TEST1" bal:Overridable="yes" /> | ||
| 10 | <Chain> | ||
| 11 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 12 | <MsiPackage SourceFile="test.msi" bal:DisplayInternalUICondition="!(loc.NonsensePlanCondition)" /> | ||
| 13 | </Chain> | ||
| 14 | <bal:Condition Condition="!(loc.NonsenseDetectCondition)" Message="Unsupported" /> | ||
| 15 | </Bundle> | ||
| 16 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/AllPrereqPackages.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/AllPrereqPackages.wxs new file mode 100644 index 00000000..17f1ee77 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/AllPrereqPackages.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage bal:PrereqPackage="yes" Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | <MsiPackage bal:PrereqPackage="yes" Permanent="yes" SourceFile="test.msi" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitNonMsiPrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitNonMsiPrimaryPackage.wxs new file mode 100644 index 00000000..ca1f9358 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitNonMsiPrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <MsiPackage SourceFile="test.msi" Permanent="yes" /> | ||
| 10 | <ExePackage UninstallArguments="" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackage.wxs new file mode 100644 index 00000000..16a99e92 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackageEnableFeatureSelection.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackageEnableFeatureSelection.wxs new file mode 100644 index 00000000..85b9df65 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/ImplicitPrimaryPackageEnableFeatureSelection.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" EnableFeatureSelection="yes" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/IuibaWarnings.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/IuibaWarnings.wxs new file mode 100644 index 00000000..2cf9787d --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/IuibaWarnings.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <MsiPackage SourceFile="test.msi" InstallCondition="INSTALLTEST" bal:DisplayInternalUICondition="DISPLAYTEST" /> | ||
| 10 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" Cache="force" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleDefaultPrimaryPackages.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleDefaultPrimaryPackages.wxs new file mode 100644 index 00000000..11736fbb --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleDefaultPrimaryPackages.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <MsiPackage Id="One" SourceFile="test.msi" bal:PrimaryPackageType="default" /> | ||
| 10 | <MsiPackage Id="Two" CacheId="dontdothis" SourceFile="test.msi" bal:PrimaryPackageType="default" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleNonPermanentNonPrimaryPackages.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleNonPermanentNonPrimaryPackages.wxs new file mode 100644 index 00000000..c5b923df --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/MultipleNonPermanentNonPrimaryPackages.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage UninstallArguments="" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NoDefaultPrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NoDefaultPrimaryPackage.wxs new file mode 100644 index 00000000..7f7528d0 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NoDefaultPrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | <MsiPackage bal:PrimaryPackageType="x86" SourceFile="test.msi" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonMsiPrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonMsiPrimaryPackage.wxs new file mode 100644 index 00000000..a6f93bcb --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonMsiPrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{1CD73801-0B08-4B39-B371-00DA49EF715F}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage UninstallArguments="" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrimaryPackageType="x86" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonPermanentPrereqPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonPermanentPrereqPackage.wxs new file mode 100644 index 00000000..a60943b0 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/NonPermanentPrereqPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage UninstallArguments="" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrereqPackage="yes" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PermanentPrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PermanentPrimaryPackage.wxs new file mode 100644 index 00000000..43caaf86 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PermanentPrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrereqPackage="yes" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" Permanent="yes" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPackageEnableFeatureSelection.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPackageEnableFeatureSelection.wxs new file mode 100644 index 00000000..4f1c40dd --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPackageEnableFeatureSelection.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrereqPackage="yes" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" EnableFeatureSelection="yes" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPrereqPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPrereqPackage.wxs new file mode 100644 index 00000000..bdb8c470 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/PrimaryPrereqPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrereqPackage="yes" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" bal:PrereqPackage="yes" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/SinglePrimaryPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/SinglePrimaryPackage.wxs new file mode 100644 index 00000000..1e9a87c2 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/SinglePrimaryPackage.wxs | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" bal:PrereqPackage="yes" /> | ||
| 10 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" /> | ||
| 11 | </Chain> | ||
| 12 | </Bundle> | ||
| 13 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/UrlPrereqPackage.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/UrlPrereqPackage.wxs new file mode 100644 index 00000000..0c68908c --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixIuiBa/UrlPrereqPackage.wxs | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixIuiBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="{5C7B7C41-B3A9-4FFF-952A-B6D68320B9B4}"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixInternalUIBootstrapperApplication /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage | ||
| 10 | Permanent="yes" | ||
| 11 | DetectCondition="none" | ||
| 12 | SourceFile="runtimes\win-x86\native\wixnative.exe" | ||
| 13 | bal:PrereqPackage="yes" | ||
| 14 | bal:PrereqLicenseUrl="https://www.mysite.com/prereqterms" | ||
| 15 | /> | ||
| 16 | <MsiPackage SourceFile="test.msi" bal:PrimaryPackageType="default" /> | ||
| 17 | </Chain> | ||
| 18 | </Bundle> | ||
| 19 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs new file mode 100644 index 00000000..c17b53ff --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Bundle.wxs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" Theme="hyperlinkLicense" /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <ExePackage Permanent="yes" DetectCondition="none" SourceFile="runtimes\win-x86\native\wixnative.exe" /> | ||
| 10 | </Chain> | ||
| 11 | </Bundle> | ||
| 12 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Data/test.msi b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Data/test.msi new file mode 100644 index 00000000..94aacd1a --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/Data/test.msi | |||
| Binary files differ | |||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs new file mode 100644 index 00000000..f08cfe6a --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/TestData/WixStdBa/DisplayInternalUIConditionBundle.wxs | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" | ||
| 3 | xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal"> | ||
| 4 | <Bundle Name="WixStdBa" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="75D5D534-E177-4689-AAE9-CAC1C39002C2"> | ||
| 5 | <BootstrapperApplication> | ||
| 6 | <bal:WixStandardBootstrapperApplication LicenseUrl="http://wixtoolset.org/about/license/" Theme="hyperlinkLicense" /> | ||
| 7 | </BootstrapperApplication> | ||
| 8 | <Chain> | ||
| 9 | <MsiPackage SourceFile="test.msi" bal:DisplayInternalUICondition="1" /> | ||
| 10 | </Chain> | ||
| 11 | </Bundle> | ||
| 12 | </Wix> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.csproj b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.csproj new file mode 100644 index 00000000..64fc297c --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.csproj | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 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 | |||
| 4 | <Project Sdk="Microsoft.NET.Sdk"> | ||
| 5 | <PropertyGroup> | ||
| 6 | <TargetFramework>net6.0</TargetFramework> | ||
| 7 | <IsWixTestProject>true</IsWixTestProject> | ||
| 8 | </PropertyGroup> | ||
| 9 | |||
| 10 | <ItemGroup> | ||
| 11 | <Content Include="TestData\**" CopyToOutputDirectory="PreserveNewest" /> | ||
| 12 | </ItemGroup> | ||
| 13 | |||
| 14 | <Target Name="CopyExtensions" AfterTargets="Build"> | ||
| 15 | <Copy DestinationFolder="$(OutputPath)" SourceFiles="@(WixExtension)" /> | ||
| 16 | </Target> | ||
| 17 | |||
| 18 | <ItemGroup> | ||
| 19 | <ProjectReference Include="..\..\wixext\WixToolset.BootstrapperApplications.wixext.csproj" /> | ||
| 20 | </ItemGroup> | ||
| 21 | |||
| 22 | <ItemGroup> | ||
| 23 | <PackageReference Include="WixInternal.Core.TestPackage" /> | ||
| 24 | </ItemGroup> | ||
| 25 | </Project> | ||
diff --git a/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.v3.ncrunchproject b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.v3.ncrunchproject new file mode 100644 index 00000000..7b5b2139 --- /dev/null +++ b/src/ext/Bal/test/WixToolsetTest.BootstrapperApplications/WixToolsetTest.BootstrapperApplications.v3.ncrunchproject | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | <ProjectConfiguration> | ||
| 2 | <Settings> | ||
| 3 | <CopyReferencedAssembliesToWorkspace>True</CopyReferencedAssembliesToWorkspace> | ||
| 4 | </Settings> | ||
| 5 | </ProjectConfiguration> \ No newline at end of file | ||
