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:
@@ -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
|
||||||
@@ -55,7 +55,8 @@
|
|||||||
"windows": {
|
"windows": {
|
||||||
"nsis": {
|
"nsis": {
|
||||||
"installMode": "currentUser",
|
"installMode": "currentUser",
|
||||||
"installerIcon": "icons/icon.ico"
|
"installerIcon": "icons/icon.ico",
|
||||||
|
"installerHooks": "nsis-hooks.nsh"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user