From 91aef8cb4426e1b4496663ef12c070a10405e1d8 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Wed, 5 Aug 2020 07:55:40 -0700 Subject: [PATCH] Fix bug in desktop wrapper. --- Desktop.Win.Wrapper/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }