Added file check before delete

This commit is contained in:
Travis Nickles 2020-04-12 05:52:50 -05:00
parent 2d8d532451
commit 2416a8e06a

View File

@ -267,7 +267,7 @@ Properties.Resources.DS4Update, MessageBoxButton.YesNo, MessageBoxImage.Question
}
else
{
File.Delete(destPath);
if (updaterExists) File.Delete(destPath);
File.Move(filename, destPath);
}
}