diff --git a/UpTool2/MainForm.cs b/UpTool2/MainForm.cs index ee16cc4..9337996 100644 --- a/UpTool2/MainForm.cs +++ b/UpTool2/MainForm.cs @@ -258,7 +258,8 @@ namespace UpTool2 MessageBox.Show(e1.ToString(), "Install failed"); } #endif - Directory.Delete(tmp, true); + if (tmp != "" && Directory.Exists(tmp)) + Directory.Delete(tmp, true); } void completeInstall(string app, App appI)