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