diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 00738965..8c3487f0 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -186,6 +186,40 @@ namespace WixToolsetTest.CoreIntegration | |||
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | [Fact] | 188 | [Fact] |
| 189 | public void PopulatesAppSearchTablesFromRegistrySearch64() | ||
| 190 | { | ||
| 191 | var folder = TestData.Get(@"TestData"); | ||
| 192 | |||
| 193 | using (var fs = new DisposableFileSystem()) | ||
| 194 | { | ||
| 195 | var baseFolder = fs.GetFolder(); | ||
| 196 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 197 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 198 | |||
| 199 | var result = WixRunner.Execute(new[] | ||
| 200 | { | ||
| 201 | "build", | ||
| 202 | Path.Combine(folder, "AppSearch", "RegistrySearch64.wxs"), | ||
| 203 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 204 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 205 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 206 | "-intermediateFolder", intermediateFolder, | ||
| 207 | "-o", msiPath | ||
| 208 | }); | ||
| 209 | |||
| 210 | result.AssertSuccess(); | ||
| 211 | |||
| 212 | Assert.True(File.Exists(msiPath)); | ||
| 213 | var results = Query.QueryDatabase(msiPath, new[] { "AppSearch", "RegLocator" }); | ||
| 214 | WixAssert.CompareLineByLine(new[] | ||
| 215 | { | ||
| 216 | "AppSearch:SAMPLEREGFOUND\tSampleRegSearch", | ||
| 217 | "RegLocator:SampleRegSearch\t2\tSampleReg\t\t18", | ||
| 218 | }, results); | ||
| 219 | } | ||
| 220 | } | ||
| 221 | |||
| 222 | [Fact] | ||
| 189 | public void PopulatesClassTablesWhenIconIndexIsZero() | 223 | public void PopulatesClassTablesWhenIconIndexIsZero() |
| 190 | { | 224 | { |
| 191 | var folder = TestData.Get(@"TestData"); | 225 | var folder = TestData.Get(@"TestData"); |
