44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using SuperMap.RealEstate.Launcher_WinForm;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Launcher.Install
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[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);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|