aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-02-06 22:04:55 -0500
committerBob Arnson <bob@firegiant.com>2020-02-07 22:00:52 -0500
commit57559c253fe8ec6f9c66662d11fbcabccc3ba057 (patch)
tree60c7b4da6bbb6fe0090498e60fdfbcb769a1af0b /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
parent9feb0090d2cdd0979bea90ba9aa13dc541f47054 (diff)
downloadwix-57559c253fe8ec6f9c66662d11fbcabccc3ba057.tar.gz
wix-57559c253fe8ec6f9c66662d11fbcabccc3ba057.tar.bz2
wix-57559c253fe8ec6f9c66662d11fbcabccc3ba057.zip
Add CreateFolder tuples for null-keypath components in the backend instead of the compiler.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
index 38ef2e2e..6fd02d5f 100644
--- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
@@ -253,6 +253,39 @@ namespace WixToolsetTest.CoreIntegration
253 } 253 }
254 254
255 [Fact] 255 [Fact]
256 public void PopulatesCreateFolderTableForNullKeypathComponents()
257 {
258 var folder = TestData.Get(@"TestData\Components");
259
260 using (var fs = new DisposableFileSystem())
261 {
262 var baseFolder = fs.GetFolder();
263 var intermediateFolder = Path.Combine(baseFolder, "obj");
264 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
265
266 var result = WixRunner.Execute(new[]
267 {
268 "build",
269 Path.Combine(folder, "Package.wxs"),
270 Path.Combine(folder, "PackageComponents.wxs"),
271 "-loc", Path.Combine(folder, "Package.en-us.wxl"),
272 "-bindpath", Path.Combine(folder, "data"),
273 "-intermediateFolder", intermediateFolder,
274 "-o", msiPath
275 });
276
277 result.AssertSuccess();
278
279 Assert.True(File.Exists(msiPath));
280 var results = Query.QueryDatabase(msiPath, new[] { "CreateFolder" });
281 Assert.Equal(new[]
282 {
283 "CreateFolder:INSTALLFOLDER\tNullKeypathComponent",
284 }, results);
285 }
286 }
287
288 [Fact]
256 public void PopulatesCustomActionTable() 289 public void PopulatesCustomActionTable()
257 { 290 {
258 var folder = TestData.Get(@"TestData"); 291 var folder = TestData.Get(@"TestData");