do not remove config if uninstalling silently (#336)

This commit is contained in:
Cyano Hao 2024-03-29 08:12:48 +08:00 committed by GitHub
parent 4f312b8de4
commit f05f42b63f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -499,10 +499,8 @@ Section "Uninstall"
DeleteRegKey ShCtx "Software\Microsoft\Windows\CurrentVersion\Uninstall\RedPanda-C++" DeleteRegKey ShCtx "Software\Microsoft\Windows\CurrentVersion\Uninstall\RedPanda-C++"
DeleteRegKey ShCtx "Software\RedPanda-C++" DeleteRegKey ShCtx "Software\RedPanda-C++"
IfSilent +2 ; Don't ask when running in silent mode MessageBox MB_YESNO "$(MessageRemoveConfig)" /SD IDNO IDNO SkipRemoveConfig
MessageBox MB_YESNO "$(MessageRemoveConfig)" IDNO Done
RMDir /r "$APPDATA\RedPandaIDE" RMDir /r "$APPDATA\RedPandaIDE"
SkipRemoveConfig:
Done:
SectionEnd SectionEnd