Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11631


Ignore:
Timestamp:
12/02/14 23:01:53 (9 years ago)
Author:
ascheibe
Message:

#2280

  • updated .NET and Mono version check
  • updated .NET download link
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  
    2626namespace HeuristicLab.PluginInfrastructure {
    2727  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 {
    2932      get {
    3033        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          }
    3242        }
    3343        catch (System.Security.SecurityException) {
    3444          return false;
    3545        }
     46        return false;
    3647      }
    3748    }
     
    4455      get {
    4556        var monoVersion = MonoVersion;
    46         var minRequiredVersion = new Version(2, 11, 4);
    47                                                                      
    48         //we need at least mono version 2.11.4
     57        var minRequiredVersion = new Version(3, 6, 0);
     58
     59        //we need at least mono version 3.6.0
    4960        if (monoVersion != null && monoVersion >= minRequiredVersion) {
    5061          return true;
     
    8495    private void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) {
    8596      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");
    8798        linkLabel.LinkVisited = true;
    8899      }
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Main.cs

    r11171 r11631  
    3434    /// <param name="args">Command line arguments</param>
    3535    public static void Run(string[] args) {
    36       if ((!FrameworkVersionErrorDialog.NET4FullProfileInstalled && !FrameworkVersionErrorDialog.MonoInstalled)
     36      if ((!FrameworkVersionErrorDialog.NET4_5Installed && !FrameworkVersionErrorDialog.MonoInstalled)
    3737        || (FrameworkVersionErrorDialog.MonoInstalled && !FrameworkVersionErrorDialog.MonoCorrectVersionInstalled)) {
    3838        Application.EnableVisualStyles();
Note: See TracChangeset for help on using the changeset viewer.