Skip to content

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

:bug: Avoid installer process detection by path prefix https://github.com/siyuan-note/siyuan/issues/20215

Daniel715129808d28
diff --git a/app/nsis/installer.nsh b/app/nsis/installer.nsh
index 0361261431..17984891ee 100644
--- a/app/nsis/installer.nsh
+++ b/app/nsis/installer.nsh
@@ -91,6 +91,13 @@ stopSiYuanDone:
Pop $R7
FunctionEnd
+!ifndef BUILD_UNINSTALLER
+ # 安装阶段按进程名再次检查,避免安装目录前缀命中工作空间或安装器自身。
+ !macro customCheckAppRunning
+ Call StopSiYuanProcesses
+ !macroend
+!endif
+
!macro preInit
SetOutPath "$TEMP"
${IfNot} ${AtLeastWin10}