public static void Main(string[] args) { try { if (BootUp.IsReboot(args)) { BootUp.WaitAppClose(30); } var exeFileName = InstalledVersionManager.GetExeFileName(); if (string.IsNullOrEmpty(exeFileName)) { throw new Exception("找不到可执行文件"); } Process.Start(exeFileName); } catch (Exception ex) { MessageBox.Show(ex.Message, "引导器错误"); } }