static int Main(string[] Args) { if (Args.Length > 0) { if (Args[0] == "-regist") { RegCode reg = new RegCode(); int code = reg.RegistAssembly(Application.ExecutablePath); return(code); } if (Args[0] == "-unregist") { RegCode reg = new RegCode(); int code = reg.UnRegistAssembly(Application.ExecutablePath); return(code); } } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new ConfigForm()); return(0); }