From 7e0c94e8c6e7e38048f38d80e8fdefac2c8d41d5 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 20 Jul 2023 23:43:01 +0800 Subject: [PATCH] :art: Windows uninstaller removes the global configuration Fix https://github.com/siyuan-note/siyuan/issues/8795 --- app/nsis/installer.nsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh index ef61c94c8..262714354 100644 --- a/app/nsis/installer.nsh +++ b/app/nsis/installer.nsh @@ -21,6 +21,16 @@ Caption "${PRODUCT_NAME} ${VERSION}" ${EndIf} !macroend +!macro customUnInstall + ${IfNot} ${isUpdated} + MessageBox MB_YESNO "是否需要删除全局配置($PROFILE\.config\siyuan\)?$\n$\n\ + Do you want to delete the global configuration ($PROFILE\.config\siyuan\)?$\n" \ + /SD IDYES IDYES Accepted IDNO Skipped + Accepted: + RMDir /r "$PROFILE\.config\siyuan\" + Skipped: + ${EndIf} +!macroend # https://nsis.sourceforge.io/FindIt:_Simple_search_for_file_/_directory !macro un.FindIt In For Result