In Nmap.nsi, remove the nselib-bin directory before installing but not when

uninstalling (it would have already been removed). I put in a comment
explaining that nselib-bin used to be used but isn't any longer. Thanks to jah
for the suggestion.
This commit is contained in:
david 2008-09-05 16:47:54 +00:00
parent fbceb0061b
commit 6aa016fb64

View file

@ -144,6 +144,7 @@ Section "Nmap Core Files" SecCore
;Delete specific subfolders (NB: custom scripts in scripts folder will be lost)
RMDir /r "$INSTDIR\nselib"
; nselib-bin held NSE C modules up through version 4.68.
RMDir /r "$INSTDIR\nselib-bin"
RMDir /r "$INSTDIR\scripts"
RMDir /r "$INSTDIR\zenmap"
@ -303,7 +304,6 @@ Section "Uninstall"
Delete "$INSTDIR\winpcap-nmap*.exe"
;Delete specific subfolders (NB: custom scripts in scripts folder will be lost)
RMDir /r "$INSTDIR\nselib"
RMDir /r "$INSTDIR\nselib-bin"
RMDir /r "$INSTDIR\scripts"
RMDir /r "$INSTDIR\zenmap"