diff --git a/src-tauri/nsis-hooks.nsh b/src-tauri/nsis-hooks.nsh new file mode 100644 index 0000000..f085d6b --- /dev/null +++ b/src-tauri/nsis-hooks.nsh @@ -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 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d0d1b7a..0e4f340 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -55,7 +55,8 @@ "windows": { "nsis": { "installMode": "currentUser", - "installerIcon": "icons/icon.ico" + "installerIcon": "icons/icon.ico", + "installerHooks": "nsis-hooks.nsh" } } },