Skip to content

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

:sparkles: Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674

Danielb2524e255dd0
diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh
index 1cc451dd95..629a5595c8 100644
--- a/app/nsis/installer.nsh
+++ b/app/nsis/installer.nsh
@@ -58,29 +58,6 @@ Caption "${PRODUCT_NAME} ${VERSION}"
nsExec::ExecToLog 'powershell -NoProfile -Command "$k=\"$INSTDIR\resources\kernel\";$p=[Environment]::GetEnvironmentVariable(\"Path\",\"User\");$p=($p.Split(\";\") | ?{$_ -ne $k}) -join \";\";[Environment]::SetEnvironmentVariable(\"Path\",$p,\"User\")"'
!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 AcceptedRMConf IDNO SkippedRMConf
- AcceptedRMConf:
- RMDir /r "$PROFILE\.config\siyuan\"
- SkippedRMConf:
- ${EndIf}
-
- ${IfNot} ${isUpdated}
- MessageBox MB_YESNO "是否需要彻底删除默认工作空间($PROFILE\SiYuan\)?$\n$\n\
- Do you want to completely delete the default workspace ($PROFILE\SiYuan\)?$\n" \
- /SD IDNO IDYES AcceptedRMWorkspace IDNO SkippedRMWrokspace
- AcceptedRMWorkspace:
- RMDir /r "$PROFILE\SiYuan\"
- SkippedRMWrokspace:
- ${EndIf}
-
- RMDir /r "$PROFILE\AppData\Local\siyuan-updater"
- nsExec::ExecToLog 'powershell -NoProfile -Command "$p=[Environment]::GetEnvironmentVariable(\"Path\",\"User\");$p=($p.Split(\";\") | ?{$_ -ne \"$INSTDIR\resources\kernel\"}) -join \";\";[Environment]::SetEnvironmentVariable(\"Path\",$p,\"User\")"'
-!macroend
-
# https://nsis.sourceforge.io/FindIt:_Simple_search_for_file_/_directory
!macro un.FindIt In For Result
Push "${In}"