diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 70d6612e..c78b0c29 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -805,71 +805,6 @@ namespace WixToolsetTest.CoreIntegration | |||
| 805 | } | 805 | } |
| 806 | 806 | ||
| 807 | [Fact] | 807 | [Fact] |
| 808 | public void PopulatesRegistryTableFromRegistryValue() | ||
| 809 | { | ||
| 810 | var folder = TestData.Get(@"TestData"); | ||
| 811 | |||
| 812 | using (var fs = new DisposableFileSystem()) | ||
| 813 | { | ||
| 814 | var baseFolder = fs.GetFolder(); | ||
| 815 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 816 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 817 | |||
| 818 | var result = WixRunner.Execute(new[] | ||
| 819 | { | ||
| 820 | "build", | ||
| 821 | Path.Combine(folder, "Registry", "RegistryValue.wxs"), | ||
| 822 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 823 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 824 | "-intermediateFolder", intermediateFolder, | ||
| 825 | "-o", msiPath | ||
| 826 | }); | ||
| 827 | |||
| 828 | result.AssertSuccess(); | ||
| 829 | |||
| 830 | Assert.True(File.Exists(msiPath)); | ||
| 831 | var results = Query.QueryDatabase(msiPath, new[] { "Registry" }); | ||
| 832 | Assert.Equal(new[] | ||
| 833 | { | ||
| 834 | "Registry:reg04OIwIchl.9ZTjisTT6NzGSsQSM\t2\tPath\\To\\AnotherKey\tSecret\t#x\tMiscComponent", | ||
| 835 | "Registry:regEblTuusqFNSUQNy88zaP_UA5kIY\t2\tPath\\To\\Key\t\t1.0.1234.123\tMiscComponent", | ||
| 836 | }, results); | ||
| 837 | } | ||
| 838 | } | ||
| 839 | |||
| 840 | [Fact] | ||
| 841 | public void PopulatesRegistryTableFromRemoveRegistryKey() | ||
| 842 | { | ||
| 843 | var folder = TestData.Get(@"TestData"); | ||
| 844 | |||
| 845 | using (var fs = new DisposableFileSystem()) | ||
| 846 | { | ||
| 847 | var baseFolder = fs.GetFolder(); | ||
| 848 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 849 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 850 | |||
| 851 | var result = WixRunner.Execute(new[] | ||
| 852 | { | ||
| 853 | "build", | ||
| 854 | Path.Combine(folder, "Registry", "RemoveRegistryKey.wxs"), | ||
| 855 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 856 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 857 | "-intermediateFolder", intermediateFolder, | ||
| 858 | "-o", msiPath | ||
| 859 | }); | ||
| 860 | |||
| 861 | result.AssertSuccess(); | ||
| 862 | |||
| 863 | Assert.True(File.Exists(msiPath)); | ||
| 864 | var results = Query.QueryDatabase(msiPath, new[] { "Registry" }); | ||
| 865 | Assert.Equal(new[] | ||
| 866 | { | ||
| 867 | "Registry:RemoveAKeyName\t2\tAKeyName\t-\t\tRemoveRegistryKeyComp", | ||
| 868 | }, results); | ||
| 869 | } | ||
| 870 | } | ||
| 871 | |||
| 872 | [Fact] | ||
| 873 | public void PopulatesReserveCostTable() | 808 | public void PopulatesReserveCostTable() |
| 874 | { | 809 | { |
| 875 | var folder = TestData.Get(@"TestData"); | 810 | var folder = TestData.Get(@"TestData"); |
