private static bool IsSupportLongPathEnabled(ILogger logger) { var longPathsEnabled = RegistryKeyUtility.GetValueFromRegistryKey("LongPathsEnabled", FilesystemRegistryKey, Registry.LocalMachine, logger); return(longPathsEnabled != null && (int)longPathsEnabled > 0); }
private static bool IsRuntimeGreaterThanNet462(ILogger logger) { var release = RegistryKeyUtility.GetValueFromRegistryKey("Release", DotNetSetupRegistryKey, Registry.LocalMachine, logger); return(release != null && (int)release >= Net462ReleasedVersion); }
private static bool IsWindows10(ILogger logger) { var productName = (string)RegistryKeyUtility.GetValueFromRegistryKey("ProductName", OSVersionRegistryKey, Registry.LocalMachine, logger); return(productName != null && productName.StartsWith("Windows 10")); }