feat(tauri): add NSIS hooks for post-install and post-uninstall

This update introduces NSIS hooks for managing shortcuts and directories
during the installation and uninstallation of the application. The hooks
ensure that the desktop and start menu shortcuts are removed properly,
along with the associated program directory.

- Implement post-install and post-uninstall hooks in NSIS
- Update configuration to reference the new hooks file
This commit is contained in:
Christoph Brandau
2026-07-08 19:52:59 +02:00
parent a7faaceb83
commit 2383abb496
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
!macro NSIS_HOOK_POSTINSTALL
Delete "$DESKTOP\GitLite.lnk"
Delete "$SMPROGRAMS\GitLite.lnk"
RMDir /r "$SMPROGRAMS\GitLite"
!macroend
!macro NSIS_HOOK_POSTUNINSTALL
Delete "$DESKTOP\GitLite.lnk"
Delete "$SMPROGRAMS\GitLite.lnk"
RMDir /r "$SMPROGRAMS\GitLite"
!macroend
+2 -1
View File
@@ -55,7 +55,8 @@
"windows": { "windows": {
"nsis": { "nsis": {
"installMode": "currentUser", "installMode": "currentUser",
"installerIcon": "icons/icon.ico" "installerIcon": "icons/icon.ico",
"installerHooks": "nsis-hooks.nsh"
} }
} }
}, },