From f91c93dfeeb92d42ad0d8d0873d11169f7534733 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 18 Nov 2010 15:55:01 +0000 Subject: [PATCH] Improved the Uninstaller section so it deletes the new license files and doesn't warn if Nmap isn't present (useful if the other tools, such as Ncat, were installed separately). --- mswin32/nsis/Nmap.nsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mswin32/nsis/Nmap.nsi b/mswin32/nsis/Nmap.nsi index 8b59533e6..11413299a 100644 --- a/mswin32/nsis/Nmap.nsi +++ b/mswin32/nsis/Nmap.nsi @@ -435,6 +435,10 @@ Section "Uninstall" probably_safe_key_uninstall: IfFileExists $INSTDIR\nmap.exe nmap_installed + IfFileExists $INSTDIR\zenmap.exe nmap_installed + IfFileExists $INSTDIR\ncat.exe nmap_installed + IfFileExists $INSTDIR\nping.exe nmap_installed + IfFileExists $INSTDIR\ndiff.exe nmap_installed MessageBox MB_YESNO "It does not appear that Nmap is installed in the directory '$INSTDIR'.$\r$\nContinue anyway (not recommended)?" IDYES nmap_installed Abort "Uninstall aborted by user" @@ -443,6 +447,7 @@ Section "Uninstall" SetDetailsPrint listonly nmap_installed: + Delete "$INSTDIR\3rd-party-licenses.txt" Delete "$INSTDIR\CHANGELOG" Delete "$INSTDIR\COPYING" Delete "$INSTDIR\nmap-mac-prefixes" @@ -474,6 +479,7 @@ Section "Uninstall" RMDir /r "$INSTDIR\scripts" RMDir /r "$INSTDIR\share" RMDir /r "$INSTDIR\py2exe" + RMDir /r "$INSTDIR\licenses" Delete "$INSTDIR\Uninstall.exe"