public static void Main(String[] args) { try { Util.TestDotNetCapability(); } catch (Exception e) { String message = ".NET Version 3.5 is required."; LogStartupError(message, e); MessageBox.Show(message); Environment.Exit(1); } try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SetupForm setupForm = new SetupForm(new Setup()); Application.Run(setupForm); } catch (Exception e) { LogStartupError(null, e); } }
public static void Main(String[] args) { try { Util.TestDotNetCapability(); } catch (Exception) { MessageBox.Show(".NET Version 3.5 is required."); Environment.Exit(1); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SetupForm setupForm = new SetupForm(new Setup()); Application.Run(setupForm); }