public void PreMsi50ShortcutProperty() { // Loop through a list of pre-MSI 5.0 Windows Installer version foreach (MSIVersions.Versions version in Enum.GetValues(typeof(MSIVersions.Versions))) { // Skip MSI 5.0 and later if (MSIVersions.GetVersion(version) >= MSIVersions.GetVersion(MSIVersions.Versions.MSI50)) { continue; } Candle candle = new Candle(); candle.SourceFiles.Add(Path.Combine(ShortcutPropertyTests.TestDataDirectory, @"PreMsi50ShortcutProperty\product.wxs")); candle.PreProcessorParams.Add("InstallerVersion", MSIVersions.GetVersionInMSIFormat(version)); candle.Run(); Light light = new Light(candle); // Only run validation on MSIs built with the current or earlier than current versions of Windows Installer if (DTF.Installer.Version < MSIVersions.GetVersion(version)) { light.SuppressMSIAndMSMValidation = true; } light.Run(); } }
public void MultipleHyperlinks() { Candle candle = new Candle(); candle.SourceFiles.Add(Path.Combine(HyperlinkTests.TestDataDirectory, @"MultipleHyperlinks\product.wxs")); candle.Run(); Light light = new Light(candle); // Only run validation if the current version of Windows Installer is 5.0 or above if (DTF.Installer.Version < MSIVersions.GetVersion(MSIVersions.Versions.MSI50)) { light.SuppressMSIAndMSMValidation = true; } light.Run(); Verifier.VerifyQuery(light.OutputFile, "SELECT `Type` from `Control` WHERE `Control`='Control1'", "Hyperlink"); }
public void SimpleShortcutProperty() { Candle candle = new Candle(); candle.SourceFiles.Add(Path.Combine(ShortcutPropertyTests.TestDataDirectory, @"SimpleShortcutProperty\product.wxs")); candle.Run(); Light light = new Light(candle); // Only run validation if the current version of Windows Installer is 5.0 or above if (DTF.Installer.Version < MSIVersions.GetVersion(MSIVersions.Versions.MSI50)) { light.SuppressMSIAndMSMValidation = true; } light.Run(); Verifier.VerifyResults(Path.Combine(ShortcutPropertyTests.TestDataDirectory, @"SimpleShortcutProperty\expected.msi"), light.OutputFile, "MsiShortcutProperty"); }
public void CreateFolderPermissionEx() { Candle candle = new Candle(); candle.SourceFiles.Add(Path.Combine(PermissionExTests.TestDataDirectory, @"CreateFolderPermissionEx\product.wxs")); candle.Run(); Light light = new Light(candle); // Only run validation if the current version of Windows Installer is 5.0 or above if (DTF.Installer.Version < MSIVersions.GetVersion(MSIVersions.Versions.MSI50)) { light.SuppressMSIAndMSMValidation = true; } light.Run(); Verifier.VerifyResults(Path.Combine(PermissionExTests.TestDataDirectory, @"CreateFolderPermissionEx\expected.msi"), light.OutputFile, "MsiLockPermissionsEx"); }