diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-01-18 10:04:07 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-01-18 10:04:07 +0200 |
| commit | 62baeff056ab56c376becd665b1bd5691573e8d5 (patch) | |
| tree | bf4e5ad8e3782118426257456f765a0391f55523 /Software/Visual_Studio/MachineStudio | |
| parent | e8cef1fd48f56027384ae163c33bce36f8b79b31 (diff) | |
| download | Tango-62baeff056ab56c376becd665b1bd5691573e8d5.tar.gz Tango-62baeff056ab56c376becd665b1bd5691573e8d5.zip | |
MS updater removes DB and ColorLab modules.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs index e601b18f2..818ea7e41 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs @@ -49,6 +49,7 @@ namespace Tango.MachineStudio.Updater EnsureMachineStudioIsDown(); //RemoveOldDLLFiles(); ReplaceFiles(); + PostProcessing(); StartMachineStudio(); Environment.Exit(0); } @@ -176,5 +177,21 @@ namespace Tango.MachineStudio.Updater { MessageBox.Show(error, "Machine Studio Update", MessageBoxButton.OK, MessageBoxImage.Error); } + + private void PostProcessing() + { + //Remove DB and ColorLab modules. + TryDelete(Path.Combine(_appPath, "Tango.MachineStudio.DB.dll")); + TryDelete(Path.Combine(_appPath, "Tango.MachineStudio.ColorLab.dll")); + } + + private void TryDelete(String path) + { + try + { + File.Delete(path); + } + catch { } + } } } |
