diff --git a/Desktop.Win.Wrapper/MainWindow.xaml.cs b/Desktop.Win.Wrapper/MainWindow.xaml.cs index f72124115..3f325e4f4 100644 --- a/Desktop.Win.Wrapper/MainWindow.xaml.cs +++ b/Desktop.Win.Wrapper/MainWindow.xaml.cs @@ -79,7 +79,10 @@ private void ExtractRemotely() 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); }