aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs34
1 files changed, 17 insertions, 17 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 8ac3d7c71..e601b18f2 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Updater/MainWindow.xaml.cs
@@ -47,7 +47,7 @@ namespace Tango.MachineStudio.Updater
private void Update()
{
EnsureMachineStudioIsDown();
- RemoveOldDLLFiles();
+ //RemoveOldDLLFiles();
ReplaceFiles();
StartMachineStudio();
Environment.Exit(0);
@@ -66,22 +66,22 @@ namespace Tango.MachineStudio.Updater
p.Start();
}
- private void RemoveOldDLLFiles()
- {
- foreach (string dll in Directory.GetFiles(_appPath, "*.dll"))
- {
- try
- {
- File.Delete(dll);
- }
- catch
- {
- ShowError($"The file '{Path.GetFileName(dll)}' could not be removed. Please close all instances of Machine Studio and press OK.");
- RemoveOldDLLFiles();
- return;
- }
- }
- }
+ //private void RemoveOldDLLFiles()
+ //{
+ // foreach (string dll in Directory.GetFiles(_appPath, "*.dll"))
+ // {
+ // try
+ // {
+ // File.Delete(dll);
+ // }
+ // catch
+ // {
+ // ShowError($"The file '{Path.GetFileName(dll)}' could not be removed. Please close all instances of Machine Studio and press OK.");
+ // RemoveOldDLLFiles();
+ // return;
+ // }
+ // }
+ //}
private void ReplaceFiles()
{