Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/05/15 17:37:03 (10 years ago)
Author:
ascheibe
Message:

#2280 merged r11623, r11631, r11634 into stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.Designer.cs

    r11170 r11920  
    8585      this.linkLabel.TabIndex = 2;
    8686      this.linkLabel.TabStop = true;
    87       this.linkLabel.Text = "Download Microsoft .NET Framework 4 (Full Profile)";
     87      this.linkLabel.Text = "Download Microsoft .NET Framework 4.5";
    8888      this.linkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel_LinkClicked);
    8989      //
     
    9696      this.label.Size = new System.Drawing.Size(301, 43);
    9797      this.label.TabIndex = 1;
    98       this.label.Text = "To run HeuristicLab you need at least the Microsoft .NET Framework 4 (Full Profil" +
    99     "e) or Mono version 2.11.4 or higher. Please download and install it.";
     98      this.label.Text = "To run HeuristicLab you need at least the Microsoft .NET Framework 4.5 or Mono ve" +
     99    "rsion 3.6.0 or higher. Please download and install it.";
    100100      //
    101101      // linkLabelMono
  • stable/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs

    r11170 r11920  
    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      }
Note: See TracChangeset for help on using the changeset viewer.