From a37b9d6882dd33d5d47556d847b21a0448d5e2fc Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 15 Jan 2008 10:47:39 +0100 Subject: [PATCH] WinGit: Fix invalid error message that setup.ini cannot be deleted on uninstall --- share/WinGit/install.iss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/WinGit/install.iss b/share/WinGit/install.iss index 45605254..4d223884 100644 --- a/share/WinGit/install.iss +++ b/share/WinGit/install.iss @@ -523,7 +523,7 @@ begin end; Command:=AppDir+'\setup.ini'; - if not DeleteFile(Command) then begin + if (FileExists(Command) and (not DeleteFile(Command))) then begin Msg:='Line {#emit __LINE__}: Unable to delete file "'+Command+'".'; MsgBox(Msg,mbError,MB_OK); Log(Msg); -- 2.11.4.GIT