diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-10-16 17:04:28 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-10-18 11:34:46 -0700 |
| commit | 7d699fdbbe8a15c72b69f633ac9799fb757e2acc (patch) | |
| tree | 2638bd4694a849e23d5156521c21057460c2c5d1 /src | |
| parent | 9ca5e0a95d0858a177fe1efdc15a962e5f7c1d84 (diff) | |
| download | wix-7d699fdbbe8a15c72b69f633ac9799fb757e2acc.tar.gz wix-7d699fdbbe8a15c72b69f633ac9799fb757e2acc.tar.bz2 wix-7d699fdbbe8a15c72b69f633ac9799fb757e2acc.zip | |
Several fixes
Diffstat (limited to 'src')
6 files changed, 26 insertions, 15 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs index 9671780d..cdda4ebc 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateOutputFromIRCommand.cs | |||
| @@ -117,6 +117,10 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 117 | this.AddMsiServiceConfigFailureActionsTuple((MsiServiceConfigFailureActionsTuple)tuple, output); | 117 | this.AddMsiServiceConfigFailureActionsTuple((MsiServiceConfigFailureActionsTuple)tuple, output); |
| 118 | break; | 118 | break; |
| 119 | 119 | ||
| 120 | case TupleDefinitionType.MsiShortcutProperty: | ||
| 121 | this.AddTupleDefaultly(tuple, output, true); | ||
| 122 | break; | ||
| 123 | |||
| 120 | case TupleDefinitionType.MoveFile: | 124 | case TupleDefinitionType.MoveFile: |
| 121 | this.AddMoveFileTuple((MoveFileTuple)tuple, output); | 125 | this.AddMoveFileTuple((MoveFileTuple)tuple, output); |
| 122 | break; | 126 | break; |
diff --git a/src/WixToolset.Core/Compiler_2.cs b/src/WixToolset.Core/Compiler_2.cs index 7eeb2e2e..740219cb 100644 --- a/src/WixToolset.Core/Compiler_2.cs +++ b/src/WixToolset.Core/Compiler_2.cs | |||
| @@ -1297,7 +1297,7 @@ namespace WixToolset.Core | |||
| 1297 | { | 1297 | { |
| 1298 | this.Core.Write(ErrorMessages.AdvertiseStateMustMatch(sourceLineNumbers, advertise.ToString(), progIdAdvertise.ToString())); | 1298 | this.Core.Write(ErrorMessages.AdvertiseStateMustMatch(sourceLineNumbers, advertise.ToString(), progIdAdvertise.ToString())); |
| 1299 | } | 1299 | } |
| 1300 | else | 1300 | else if (YesNoType.NotSet != progIdAdvertise) |
| 1301 | { | 1301 | { |
| 1302 | advertise = progIdAdvertise; | 1302 | advertise = progIdAdvertise; |
| 1303 | } | 1303 | } |
| @@ -2020,6 +2020,7 @@ namespace WixToolset.Core | |||
| 2020 | var tuple = new RegistryTuple(sourceLineNumbers, id) | 2020 | var tuple = new RegistryTuple(sourceLineNumbers, id) |
| 2021 | { | 2021 | { |
| 2022 | Root = root.Value, | 2022 | Root = root.Value, |
| 2023 | Key = key, | ||
| 2023 | Name = name, | 2024 | Name = name, |
| 2024 | Value = value, | 2025 | Value = value, |
| 2025 | ValueType = valueType, | 2026 | ValueType = valueType, |
| @@ -4923,7 +4924,7 @@ namespace WixToolset.Core | |||
| 4923 | 4924 | ||
| 4924 | // Ensure that RemoveExistingProducts is authored in InstallExecuteSequence | 4925 | // Ensure that RemoveExistingProducts is authored in InstallExecuteSequence |
| 4925 | // if at least one row in Upgrade table lacks the OnlyDetect attribute. | 4926 | // if at least one row in Upgrade table lacks the OnlyDetect attribute. |
| 4926 | if (onlyDetect) | 4927 | if (!onlyDetect) |
| 4927 | { | 4928 | { |
| 4928 | this.Core.CreateSimpleReference(sourceLineNumbers, "WixAction", "InstallExecuteSequence", "RemoveExistingProducts"); | 4929 | this.Core.CreateSimpleReference(sourceLineNumbers, "WixAction", "InstallExecuteSequence", "RemoveExistingProducts"); |
| 4929 | } | 4930 | } |
diff --git a/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs b/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs index dc34c2cc..80a6d1dd 100644 --- a/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/LinkerFixture.cs | |||
| @@ -13,7 +13,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 13 | 13 | ||
| 14 | public class LinkerFixture | 14 | public class LinkerFixture |
| 15 | { | 15 | { |
| 16 | [Fact(Skip = "Test demonstrates failure")] | 16 | [Fact] |
| 17 | public void CanBuildWithOverridableActions() | 17 | public void CanBuildWithOverridableActions() |
| 18 | { | 18 | { |
| 19 | var folder = TestData.Get(@"TestData\OverridableActions"); | 19 | var folder = TestData.Get(@"TestData\OverridableActions"); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index e30441bf..2d6feb4e 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
| @@ -608,7 +608,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 608 | } | 608 | } |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | [Fact(Skip = "Test demonstrates failure")] | 611 | [Fact] |
| 612 | public void CanBuildVersionIndependentProgId() | 612 | public void CanBuildVersionIndependentProgId() |
| 613 | { | 613 | { |
| 614 | var folder = TestData.Get(@"TestData\ProgId"); | 614 | var folder = TestData.Get(@"TestData\ProgId"); |
| @@ -639,11 +639,17 @@ namespace WixToolsetTest.CoreIntegration | |||
| 639 | var section = intermediate.Sections.Single(); | 639 | var section = intermediate.Sections.Single(); |
| 640 | 640 | ||
| 641 | var progids = section.Tuples.OfType<ProgIdTuple>().OrderBy(tuple => tuple.ProgId).ToList(); | 641 | var progids = section.Tuples.OfType<ProgIdTuple>().OrderBy(tuple => tuple.ProgId).ToList(); |
| 642 | Assert.Equal(2, progids.Count); | 642 | Assert.Equal(new[] |
| 643 | Assert.Equal("Foo.File.hol", progids[0].ProgId); | 643 | { |
| 644 | Assert.Equal("Foo.File.hol.15", progids[0].ParentProgIdRef); | 644 | "Foo.File.hol", |
| 645 | Assert.Equal("Foo.File.hol.15", progids[1].ProgId); | 645 | "Foo.File.hol.15" |
| 646 | Assert.Null(progids[1].ParentProgIdRef); | 646 | }, progids.Select(p => p.ProgId).ToArray()); |
| 647 | |||
| 648 | Assert.Equal(new[] | ||
| 649 | { | ||
| 650 | "Foo.File.hol.15", | ||
| 651 | null | ||
| 652 | }, progids.Select(p => p.ParentProgIdRef).ToArray()); | ||
| 647 | } | 653 | } |
| 648 | } | 654 | } |
| 649 | 655 | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index e2a672b7..d31c9ee8 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -181,7 +181,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 181 | } | 181 | } |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | [Fact(Skip = "Test demonstrates failure")] | 184 | [Fact] |
| 185 | public void PopulatesClassTablesWhenProgIdIsNestedUnderAdvertisedClass() | 185 | public void PopulatesClassTablesWhenProgIdIsNestedUnderAdvertisedClass() |
| 186 | { | 186 | { |
| 187 | var folder = TestData.Get(@"TestData"); | 187 | var folder = TestData.Get(@"TestData"); |
| @@ -396,7 +396,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 396 | } | 396 | } |
| 397 | } | 397 | } |
| 398 | 398 | ||
| 399 | [Fact(Skip = "Test demonstrates failure")] | 399 | [Fact] |
| 400 | public void PopulatesInstallExecuteSequenceTable() | 400 | public void PopulatesInstallExecuteSequenceTable() |
| 401 | { | 401 | { |
| 402 | var folder = TestData.Get(@"TestData"); | 402 | var folder = TestData.Get(@"TestData"); |
| @@ -516,7 +516,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 516 | } | 516 | } |
| 517 | } | 517 | } |
| 518 | 518 | ||
| 519 | [Fact(Skip = "Test demonstrates failure")] | 519 | [Fact] |
| 520 | public void PopulatesMsiShortcutPropertyTable() | 520 | public void PopulatesMsiShortcutPropertyTable() |
| 521 | { | 521 | { |
| 522 | var folder = TestData.Get(@"TestData"); | 522 | var folder = TestData.Get(@"TestData"); |
| @@ -549,7 +549,7 @@ namespace WixToolsetTest.CoreIntegration | |||
| 549 | } | 549 | } |
| 550 | } | 550 | } |
| 551 | 551 | ||
| 552 | [Fact(Skip = "Test demonstrates failure")] | 552 | [Fact] |
| 553 | public void PopulatesRegistryTableFromRegistryValue() | 553 | public void PopulatesRegistryTableFromRegistryValue() |
| 554 | { | 554 | { |
| 555 | var folder = TestData.Get(@"TestData"); | 555 | var folder = TestData.Get(@"TestData"); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs index 061eae07..517bddbf 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/WixlibQueryFixture.cs | |||
| @@ -12,8 +12,8 @@ namespace WixToolsetTest.CoreIntegration | |||
| 12 | 12 | ||
| 13 | public class WixlibQueryFixture | 13 | public class WixlibQueryFixture |
| 14 | { | 14 | { |
| 15 | [Fact(Skip = "Test demonstrates failure")] | 15 | [Fact] |
| 16 | public void DetectOnlyUpgradeProducesReferenceToRemoveExistingProducts() | 16 | public void UpgradeProducesReferenceToRemoveExistingProducts() |
| 17 | { | 17 | { |
| 18 | var folder = TestData.Get(@"TestData\Upgrade"); | 18 | var folder = TestData.Get(@"TestData\Upgrade"); |
| 19 | 19 | ||
