public BundleInstaller(WixTestContext testContext, string name) { this.Bundle = Path.Combine(testContext.TestDataFolder, $"{name}.exe"); this.BundlePdb = Path.Combine(testContext.TestDataFolder, $"{name}.wixpdb"); this.TestContext = testContext; this.TestGroupName = testContext.TestGroupName; this.TestName = testContext.TestName; }
public PackageInstaller(WixTestContext testContext, string filename) { this.Package = Path.Combine(testContext.TestDataFolder, $"{filename}.msi"); this.PackagePdb = Path.Combine(testContext.TestDataFolder, $"{filename}.wixpdb"); this.TestContext = testContext; using var wixOutput = WixOutput.Read(this.PackagePdb); var intermediate = Intermediate.Load(wixOutput); var section = intermediate.Sections.Single(); var platformSummary = section.Symbols.OfType <SummaryInformationSymbol>().Single(s => s.PropertyId == SummaryInformationType.PlatformAndLanguage); var platformString = platformSummary.Value.Split(new char[] { ';' }, 2)[0]; this.IsX64 = platformString != "Intel"; this.WiData = WindowsInstallerData.Load(wixOutput); }
public PackageInstaller(WixTestContext testContext, string filename) { this.Package = Path.Combine(testContext.TestDataFolder, $"{filename}.msi"); this.PackagePdb = Path.Combine(testContext.TestDataFolder, $"{filename}.wixpdb"); this.TestContext = testContext; }