var currentExecutablePath = Process.GetCurrentProcess().MainModule.FileName; Process.Start(currentExecutablePath); Application.Current.Shutdown();