Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8457 for branches


Ignore:
Timestamp:
08/09/12 11:14:34 (12 years ago)
Author:
ascheibe
Message:

#1861 applied patches 0021 and 0022

Location:
branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs

    r7259 r8457  
    2626  public partial class FrameworkVersionErrorDialog : Form {
    2727    public static bool NET4FullProfileInstalled {
    28       get { return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; }
     28      get {
     29    try {
     30      return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null;
     31                } catch(System.Security.SecurityException) {
     32              return false;
     33          }
     34    }
     35    }
     36
     37    public static bool MonoInstalled {
     38      get { return Type.GetType("Mono.Runtime") != null; }
     39    }
     40
     41    public static bool PlatformSupported {
     42      get { return MonoInstalled || NET4FullProfileInstalled; }
    2943    }
    3044
  • branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3/Main.cs

    r7259 r8457  
    3434    /// <param name="args">Command line arguments</param>
    3535    public static void Run(string[] args) {
    36       if (!FrameworkVersionErrorDialog.NET4FullProfileInstalled) {
     36      if (!FrameworkVersionErrorDialog.PlatformSupported) {
    3737        Application.EnableVisualStyles();
    3838        Application.SetCompatibleTextRenderingDefault(false);
Note: See TracChangeset for help on using the changeset viewer.