Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Probe the install folder with a unique file and check the delete

Fei241139d6a1ac7efb
diff --git a/app/build/installer.nsh b/app/build/installer.nsh
index d66a5312..7302316b 100644
--- a/app/build/installer.nsh
+++ b/app/build/installer.nsh
@@ -67,12 +67,17 @@
${EndIf}
${If} $R3 == 0
ClearErrors
- FileOpen $R2 "$dsbCheckTarget\~dsb-writetest.tmp" w
+ GetTempFileName $R2 "$dsbCheckTarget"
${If} ${Errors}
+ ${OrIf} $R2 == ""
StrCpy $R3 1
${Else}
- FileClose $R2
- Delete "$dsbCheckTarget\~dsb-writetest.tmp"
+ ; updates replace files, so a folder must also allow deleting them
+ ClearErrors
+ Delete "$R2"
+ ${If} ${Errors}
+ StrCpy $R3 1
+ ${EndIf}
${EndIf}
${EndIf}