Changeset 11631
- Timestamp:
- 12/02/14 23:01:53 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs
r11171 r11631 26 26 namespace HeuristicLab.PluginInfrastructure { 27 27 public partial class FrameworkVersionErrorDialog : Form { 28 public static bool NET4FullProfileInstalled { 28 private const string NETVersionPath = @"Software\Microsoft\NET Framework Setup\NDP\v4\Full"; 29 private const string NETVersion = "Version"; 30 31 public static bool NET4_5Installed { 29 32 get { 30 33 try { 31 return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; 34 var registryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(NETVersionPath); 35 if (registryKey != null) { 36 var versionKey = registryKey.GetValue(NETVersion); 37 if (versionKey != null) { 38 Version version = new Version(versionKey.ToString()); 39 return version.Major >= 4 && version.Minor >= 5; 40 } 41 } 32 42 } 33 43 catch (System.Security.SecurityException) { 34 44 return false; 35 45 } 46 return false; 36 47 } 37 48 } … … 44 55 get { 45 56 var monoVersion = MonoVersion; 46 var minRequiredVersion = new Version( 2, 11, 4);47 48 //we need at least mono version 2.11.457 var minRequiredVersion = new Version(3, 6, 0); 58 59 //we need at least mono version 3.6.0 49 60 if (monoVersion != null && monoVersion >= minRequiredVersion) { 50 61 return true; … … 84 95 private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { 85 96 try { 86 System.Diagnostics.Process.Start("http://www.microsoft.com/ downloads/en/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7");97 System.Diagnostics.Process.Start("http://www.microsoft.com/en-us/download/details.aspx?id=30653"); 87 98 linkLabel.LinkVisited = true; 88 99 } -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Main.cs
r11171 r11631 34 34 /// <param name="args">Command line arguments</param> 35 35 public static void Run(string[] args) { 36 if ((!FrameworkVersionErrorDialog.NET4 FullProfileInstalled && !FrameworkVersionErrorDialog.MonoInstalled)36 if ((!FrameworkVersionErrorDialog.NET4_5Installed && !FrameworkVersionErrorDialog.MonoInstalled) 37 37 || (FrameworkVersionErrorDialog.MonoInstalled && !FrameworkVersionErrorDialog.MonoCorrectVersionInstalled)) { 38 38 Application.EnableVisualStyles();
Note: See TracChangeset
for help on using the changeset viewer.