From f05f42b63f72277bb25fbead716cfca9fccbbca9 Mon Sep 17 00:00:00 2001 From: Cyano Hao Date: Fri, 29 Mar 2024 08:12:48 +0800 Subject: [PATCH] do not remove config if uninstalling silently (#336) --- platform/windows/installer-scripts/redpanda.nsi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/platform/windows/installer-scripts/redpanda.nsi b/platform/windows/installer-scripts/redpanda.nsi index decc6005..ee44be61 100644 --- a/platform/windows/installer-scripts/redpanda.nsi +++ b/platform/windows/installer-scripts/redpanda.nsi @@ -499,10 +499,8 @@ Section "Uninstall" DeleteRegKey ShCtx "Software\Microsoft\Windows\CurrentVersion\Uninstall\RedPanda-C++" DeleteRegKey ShCtx "Software\RedPanda-C++" - IfSilent +2 ; Don't ask when running in silent mode - MessageBox MB_YESNO "$(MessageRemoveConfig)" IDNO Done - + MessageBox MB_YESNO "$(MessageRemoveConfig)" /SD IDNO IDNO SkipRemoveConfig RMDir /r "$APPDATA\RedPandaIDE" +SkipRemoveConfig: -Done: SectionEnd