diff --git a/Desktop.Win.Wrapper/MainWindow.xaml.cs b/Desktop.Win.Wrapper/MainWindow.xaml.cs index f7212411..3f325e4f 100644 --- a/Desktop.Win.Wrapper/MainWindow.xaml.cs +++ b/Desktop.Win.Wrapper/MainWindow.xaml.cs @@ -79,7 +79,10 @@ namespace Remotely.Desktop.Win.Wrapper try { var currentVersionDir = Path.GetDirectoryName(targetExePath); - Directory.Delete(currentVersionDir, true); + if (Directory.Exists(currentVersionDir)) + { + Directory.Delete(currentVersionDir, true); + } Directory.CreateDirectory(currentVersionDir); ZipFile.ExtractToDirectory(zipPath, currentVersionDir); }