Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Windows uninstaller removes the default workspace https://github.com/siyuan-note/siyuan/issues/8876

Daniel678740d343b1
diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh
index 5c1072a83e..3218b113de 100644
--- a/app/nsis/installer.nsh
+++ b/app/nsis/installer.nsh
@@ -25,19 +25,19 @@ Caption "${PRODUCT_NAME} ${VERSION}"
${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:
+ /SD IDYES IDYES AcceptedRMConf IDNO SkippedRMConf
+ AcceptedRMConf:
RMDir /r "$PROFILE\.config\siyuan\"
- Skipped:
+ SkippedRMConf:
${EndIf}
${IfNot} ${isUpdated}
MessageBox MB_YESNO "是否需要彻底删除默认工作空间($PROFILE\SiYuan\)?$\n$\n\
Do you want to completely delete the default workspace ($PROFILE\SiYuan\)?$\n" \
- /SD IDYES IDYES Accepted IDNO Skipped
- Accepted:
+ /SD IDNO IDYES AcceptedRMWorkspace IDNO SkippedRMWrokspace
+ AcceptedRMWorkspace:
RMDir /r "$PROFILE\SiYuan\"
- Skipped:
+ SkippedRMWrokspace:
${EndIf}
!macroend