diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-12 14:41:26 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-12 23:25:04 -0700 |
| commit | c9c347bfb659878ce43c60daadac490e230ee17a (patch) | |
| tree | 6fafc3f635bdbe474d6f9988e2c3d4fa802f5228 /src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |
| parent | 32b691d23c76fbe12790808d65b0b615640ebebe (diff) | |
| download | wix-c9c347bfb659878ce43c60daadac490e230ee17a.tar.gz wix-c9c347bfb659878ce43c60daadac490e230ee17a.tar.bz2 wix-c9c347bfb659878ce43c60daadac490e230ee17a.zip | |
Fix inscript CA bit handling
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index f8f9180f..3e66ad0a 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
| @@ -539,6 +539,38 @@ namespace WixToolsetTest.CoreIntegration | |||
| 539 | } | 539 | } |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | [Fact] | ||
| 543 | public void CanBuildSetProperty() | ||
| 544 | { | ||
| 545 | var folder = TestData.Get(@"TestData\SetProperty"); | ||
| 546 | |||
| 547 | using (var fs = new DisposableFileSystem()) | ||
| 548 | { | ||
| 549 | var baseFolder = fs.GetFolder(); | ||
| 550 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 551 | |||
| 552 | var result = WixRunner.Execute(new[] | ||
| 553 | { | ||
| 554 | "build", | ||
| 555 | Path.Combine(folder, "Package.wxs"), | ||
| 556 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 557 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 558 | "-bindpath", Path.Combine(folder, "data"), | ||
| 559 | "-intermediateFolder", intermediateFolder, | ||
| 560 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | ||
| 561 | }); | ||
| 562 | |||
| 563 | result.AssertSuccess(); | ||
| 564 | |||
| 565 | var pdb = Pdb.Load(Path.Combine(baseFolder, @"bin\test.wixpdb"), false); | ||
| 566 | var caRows = pdb.Output.Tables["CustomAction"].Rows.Single(); | ||
| 567 | Assert.Equal("SetINSTALLLOCATION", caRows.FieldAsString(0)); | ||
| 568 | Assert.Equal("51", caRows.FieldAsString(1)); | ||
| 569 | Assert.Equal("INSTALLLOCATION", caRows.FieldAsString(2)); | ||
| 570 | Assert.Equal("[INSTALLFOLDER]", caRows.FieldAsString(3)); | ||
| 571 | } | ||
| 572 | } | ||
| 573 | |||
| 542 | [Fact(Skip = "Test demonstrates failure")] | 574 | [Fact(Skip = "Test demonstrates failure")] |
| 543 | public void CanBuildVersionIndependentProgId() | 575 | public void CanBuildVersionIndependentProgId() |
| 544 | { | 576 | { |
