Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/10/14 10:31:41 (9 years ago)
Author:
pfleck
Message:

#2269 Merged trunk. Updated .net version of ALPS plugin.

Location:
branches/ALPS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS

  • branches/ALPS/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs

    r11171 r11677  
    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.