wraith/src-tauri/windows/hooks.nsh
Vantz Stockwell 74b9be3046
Some checks failed
Build & Sign Wraith / Build Windows + Sign (push) Has been cancelled
fix: remove desktop shortcut from NSIS installer by default
Tauri's NSIS bundler creates a desktop shortcut unconditionally. Added
a POSTINSTALL hook that deletes it immediately after creation. Start
menu shortcut remains. Users who want a desktop shortcut can create
one manually.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 20:04:06 -04:00

7 lines
186 B
Plaintext

; Wraith NSIS installer hooks
; Desktop shortcut is OFF by default — Tauri creates one, we remove it.
!macro NSIS_HOOK_POSTINSTALL
Delete "$DESKTOP\${MAINBINARYNAME}.lnk"
!macroend