From 2bc98317e97f68dacc67352b93616e7ddcc0fe2a Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Wed, 18 Sep 2024 07:07:29 -0300 Subject: [PATCH] fix: conditional to check if hydra is updating --- build/installer.nsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/installer.nsh b/build/installer.nsh index 2c9c98c9..89693a5c 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -1,4 +1,6 @@ !macro customUnInstall - RMDir /r "$APPDATA\${APP_PACKAGE_NAME}" - RMDir /r "$APPDATA\hydra" + ${ifNot} ${isUpdated} + RMDir /r "$APPDATA\${APP_PACKAGE_NAME}" + RMDir /r "$APPDATA\hydra" + ${endIf} !macroend