fix(installer): preserve Windows shortcuts during update by removing early delete (#517)

This commit is contained in:
paisley
2026-03-16 11:07:37 +08:00
committed by GitHub
Unverified
parent 158e84ce8f
commit dd0ce7740a

View File

@@ -8,13 +8,6 @@
!endif
!macro customCheckAppRunning
; Pre-emptively remove old shortcuts to prevent the Windows "Missing Shortcut"
; dialog during upgrades. The built-in NSIS uninstaller deletes ClawX.exe
; *before* removing shortcuts; Windows Shell link tracking can detect the
; broken target in that brief window and pop a resolver dialog.
; Delete is a silent no-op when the file doesn't exist (safe for fresh installs).
Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
Delete "$SMPROGRAMS\${PRODUCT_NAME}.lnk"
${nsProcess::FindProcess} "${APP_EXECUTABLE_FILENAME}" $R0