From 081004c8d4404456b0e8bb04e5a337a1261aad0a Mon Sep 17 00:00:00 2001 From: Timo Schwarzer Date: Wed, 3 Apr 2024 20:29:33 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20DeleteWithRetry=20for=20real=E2=84=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.iss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.iss b/setup.iss index 9e4a110..5ba10b4 100644 --- a/setup.iss +++ b/setup.iss @@ -54,7 +54,7 @@ begin if FileExists(FileName) then begin Log(Format('%s exists, will try to delete', [FileName])); - while not DeleteFile(Path) do + while not DeleteFile(FileName) do begin Log(Format('Failed to delete %s, will try again in 1000 ms', [FileName])); Sleep(1000);