Exemplo n.º 1
0
        static void RestartForUpdate()
        {
            string restartArgs = String.Format("{0} --restart=\"{1}\"",
                                               Server.GetArgString(),
                                               MonoCompat.PrependMono("ServerGUI.exe"));

            MonoCompat.StartDotNetProcess(Paths.UpdaterFileName, restartArgs, true);
        }
Exemplo n.º 2
0
        private void bUpdateNow_Click(object sender, EventArgs e)
        {
            string args = Server.GetArgString() +
                          String.Format("--restart=\"{0}\"", MonoCompat.PrependMono("ServerGUI.exe"));

            MonoCompat.StartDotNetProcess(updaterFullPath, args, true);
            Server.Shutdown(new ShutdownParams(ShutdownReason.Restarting, TimeSpan.Zero, true, false), false);
        }
Exemplo n.º 3
0
        private void bUpdateNow_Click(object sender, EventArgs e)
        {
            string args = Server.GetArgString() +
                          String.Format("--restart=\"{0}\"", MonoCompat.PrependMono("ServerGUI.exe"));

            MonoCompat.StartDotNetProcess(updaterFullPath, args, true);
            Application.Exit();
        }
Exemplo n.º 4
0
        static void RestartForUpdate()
        {
            if (Server.HasArg(ArgKey.NoUpdater))
            {
                return;
            }
            string restartArgs = String.Format("{0} --restart=\"{1}\"",
                                               Server.GetArgString(),
                                               MonoCompat.PrependMono("ServerCLI.exe"));

            MonoCompat.StartDotNetProcess(Paths.UpdateInstallerFileName, restartArgs, true);
        }
Exemplo n.º 5
0
        static void RestartForUpdate()
        {
            string restartArgs = $"{Server.GetArgString()} --restart=\"{MonoCompat.PrependMono("ServerCLI.exe")}\"";

            MonoCompat.StartDotNetProcess(Paths.UpdaterFileName, restartArgs, true);
        }