From 23ee873c41302d6adb6c7eb6fe97e2eb03e390fd Mon Sep 17 00:00:00 2001 From: Kevin Dorner Date: Wed, 28 Oct 2020 16:57:10 +0100 Subject: [PATCH] remove not working directory check before uninstallation --- remove.ins | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/remove.ins b/remove.ins index 6759f50..58aee57 100644 --- a/remove.ins +++ b/remove.ins @@ -29,11 +29,8 @@ if (processIsRunning("ssh-agent.exe")) endif [WinBatch_Setup] -if not ($UninstallExecutablePath$ = "") - if FileExists ($UninstallExecutablePath$) - $UninstallExecutablePath$ /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\git-client-uninstall.log" - endif -endif +$UninstallExecutablePath$ /VERYSILENT /SUPPRESSMSGBOXES /LOG="%opsiLogDir%\git-client-uninstall.log" + [Files_Cleanup] delete -sf "%ProgramFilesDir%\Git\"