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
12 lines
281 B
NSIS
12 lines
281 B
NSIS
!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
|