Skip to content

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

:art: The `%LOCALAPPDATA%\siyuan-updater\` folder will be automatically deleted after installation on Windows https://github.com/siyuan-note/siyuan/issues/16733

Danielbe9a78ab16dc
diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh
index 8a1d03d618..ada1527939 100644
--- a/app/nsis/installer.nsh
+++ b/app/nsis/installer.nsh
@@ -30,6 +30,10 @@ Caption "${PRODUCT_NAME} ${VERSION}"
${EndIf}
!macroend
+!macro customInstall
+ RMDir /r "$PROFILE\AppData\Local\siyuan-updater"
+!macroend
+
!macro customUnInstall
${IfNot} ${isUpdated}
MessageBox MB_YESNO "是否需要彻底删除全局配置($PROFILE\.config\siyuan\)?$\n$\n\