Skip to content

Commit

Permalink
added_start_menu #42
Browse files Browse the repository at this point in the history
  • Loading branch information
devnulli authored Jan 30, 2021
1 parent 2ad8843 commit 41a7ca2
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions Source/EvlWatcher/EvlWatcher/NSIS/make.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,12 @@ Section "EvlWatcher Service"

;;;;;;;;MODULES HERE;;;;;;;;;;

Delete $INSTDIR\BlockRDPBruters.dll
Delete $INSTDIR\BlockFTPBruters.dll
Delete $INSTDIR\BlockFTPBruters.cfg

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Delete $INSTDIR\Interop.NetFwTypeLib.dll
Delete $INSTDIR\EvlWatcher.exe
Delete $INSTDIR\gpl-3.0.txt
Delete $INSTDIR\license.txt
Delete $INSTDIR\source.zip
Delete $INSTDIR\config.xml
Delete $INSTDIR\EvlWatcherConsole.exe
Delete $INSTDIR\EvlWatcher.ico
Delete $INSTDIR\EvlWatcher.WCF.dll

; Set output path to the installation directory.
Expand Down Expand Up @@ -91,6 +83,13 @@ Section "EvlWatcher Service"

SectionEnd

Section "Start Menu Entry"

CreateDirectory "$SMPROGRAMS\EvlWatcher"
CreateShortCut "$SMPROGRAMS\EvlWatcher\EvlWatcherConsole.lnk" "$INSTDIR\EvlWatcherConsole.exe"

SectionEnd

;;;;;;;MODULES HERE;;;;;;;;;;


Expand All @@ -108,6 +107,9 @@ Section "Uninstall"

Sleep 5000

Delete "$SMPROGRAMS\EvlWatcher\EvlWatcherConsole.lnk"
rmDir "$SMPROGRAMS\EvlWatcher"

; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\EvlWatcher"
DeleteRegKey HKLM SOFTWARE\EvlWatcher
Expand All @@ -116,36 +118,14 @@ Section "Uninstall"

;;;;;;;;MODULES HERE;;;;;;;;;;;

Delete $INSTDIR\BlockRDPBruters.dll
Delete $INSTDIR\BlockFTPBruters.dll
Delete $INSTDIR\BlockFTPBruters.cfg

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Delete $INSTDIR\Interop.NetFwTypeLib.dll
Delete $INSTDIR\EvlWatcher.exe
Delete $INSTDIR\gpl-3.0.txt
Delete $INSTDIR\license.txt
Delete $INSTDIR\config.xml
Delete $INSTDIR\EvlWatcherConsole.exe
Delete $INSTDIR\source.zip
Delete $INSTDIR\EvlWatcher.ico
Delete $INSTDIR\EvlWatcher.WCF.dll

Delete $INSTDIR\Source\Constants.cs
Delete $INSTDIR\Source\FirewallAPI.cs
Delete $INSTDIR\Source\Installer.cs
Delete $INSTDIR\Source\IPBlockingLogTask.cs
Delete $INSTDIR\Source\EvlWatcher.cs
Delete $INSTDIR\Source\LogTask.cs

;;;;;;;;;MODULES HERE;;;;;;;;;;;;;;;;

Delete $INSTDIR\Source\LogTaskBlockRDPBruters.cs
Delete $INSTDIR\Source\LogTaskBlockFTPBruters.cs
Delete $INSTDIR\Source\BlockFTPBruters.cfg

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Delete $INSTDIR\uninstall.exe

Expand Down

0 comments on commit 41a7ca2

Please sign in to comment.