using SuperMap.RealEstate.Launcher_WinForm; using System; using System.Windows.Forms; namespace Launcher.Install { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (args.Length == 0) { #if DEBUG args = new string[1]; args[0] = "Install.ini"; #else MessageBox.Show("无法从本地启动!", "驿商科技", MessageBoxButtons.OK, MessageBoxIcon.Error); return; #endif } try { Application.Run(new frmMain(args[0])); } catch(Exception ex) { string _Message = "错误的参数!"; if (ex != null) _Message = ex.Message; LoadingHelper.ForceExit(); MessageBox.Show(_Message, "驿商科技", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } }