From d4185a15e20a4b6003b96cb2a9e7a3ff7a83a531 Mon Sep 17 00:00:00 2001 From: Veit Berwig <veit.berwig@stk.landsh.de> Date: Mon, 3 Feb 2025 11:41:35 +0000 Subject: [PATCH] Update inst.nsi - uninstaller fixed - vsd-manuals added - link to manuals added --- inst.nsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/inst.nsi b/inst.nsi index f48ffa8..04b45ea 100644 --- a/inst.nsi +++ b/inst.nsi @@ -825,6 +825,11 @@ Section "-gnupginst" File /r "${VSNFD_CFG_SOURCE}\etc" SetOverwrite lastused + #--------------------------------------------------- + # Create the menu entries for VSD-Docs + #--------------------------------------------------- + CreateShortCut "$SMPROGRAMS\GnuPG Doc.lnk" "${VSNFD_CFG_TARGET}\etc\gnupg\doc" "" "${VSNFD_CFG_TARGET}\Icon.ico" + SectionEnd LangString DESC_Menu_gnupg_readme ${LANG_ENGLISH} \ @@ -1678,6 +1683,19 @@ Section "-un.gnupginst" RMDir "$INSTDIR\etc" RMDir "$INSTDIR" + # Remove global central config + # ${VSNFD_CFG_TARGET} is: "$COMMONPROGRAMDATA\GNU" + + ifFileExists "${VSNFD_CFG_TARGET}\etc\*.*" 0 no_rmetc + RMDir /r "${VSNFD_CFG_TARGET}" + + #--------------------------------------------------- + # Temove the menu entries for VSD-Docs + #--------------------------------------------------- + Delete "$SMPROGRAMS\GnuPG Doc.lnk" + + no_rmetc: + # Clean the registry. DeleteRegValue SHCTX "Software\GNU\GnuPG" "Install Directory" SectionEnd -- GitLab