From dd0ce7740a042df05038b42c82b78d0baaf2c5c7 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Mon, 16 Mar 2026 11:07:37 +0800 Subject: [PATCH] fix(installer): preserve Windows shortcuts during update by removing early delete (#517) --- scripts/installer.nsh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/installer.nsh b/scripts/installer.nsh index d0d4df1ae..c8c0f2309 100644 --- a/scripts/installer.nsh +++ b/scripts/installer.nsh @@ -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