diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-07 22:32:07 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-07 22:32:07 +0200 |
| commit | eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f (patch) | |
| tree | b9346f7a4953ae949f37f397936aa27a593f6452 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs | |
| parent | 1cbfa754eea84d46fca7a9b0d27a0a1a212b9944 (diff) | |
| parent | 72165197a9c2787f9441a5576c9a182eb839f904 (diff) | |
| download | Tango-eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f.tar.gz Tango-eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs index a553f3a18..07d034964 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineUpdateViewVM.cs @@ -213,13 +213,20 @@ namespace Tango.PPC.UI.ViewModels private void CompleteUpdate() { - String updater_exe = Path.Combine(_update_result.UpdatePackagePath, "Tango.PPC.Updater.exe"); - - LogManager.Log("Completing machine setup..."); - LogManager.Log($"Executing '{updater_exe}' with arguments '{PathHelper.GetStartupPath()}'..."); - Process.Start(updater_exe, PathHelper.GetStartupPath()); - LogManager.Log("Terminating application process!"); - Environment.Exit(0); + if (!IsDbUpdate) + { + String updater_exe = Path.Combine(_update_result.UpdatePackagePath, "Tango.PPC.Updater.exe"); + LogManager.Log("Completing machine setup..."); + LogManager.Log($"Executing '{updater_exe}' with arguments '{PathHelper.GetStartupPath()}'..."); + Process.Start(updater_exe, PathHelper.GetStartupPath()); + LogManager.Log("Terminating application process!"); + Environment.Exit(0); + } + else + { + LogManager.Log("Restarting Application..."); + ApplicationManager.Restart(); + } } #endregion |
