Blob


1 #!/usr/bin/makensis
3 Name "winlogbeat"
4 RequestExecutionLevel admin
5 InstallDir "$PROGRAMFILES64\winlogbeat"
6 OutFile "install.exe"
8 ; Use the "classic" theme since there are no dependencies.
9 Page directory
10 Page instfiles
12 Section "install"
13 SetOutPath "$INSTDIR"
15 File LICENSE.txt
16 File NOTICE.txt
17 File README.md
18 File fields.yml
19 File winlogbeat.yml
20 File winlogbeat.exe
21 File winlogbeat.reference.yml
23 WriteUninstaller "$INSTDIR\uninstall.exe"
25 ExecWait 'sc create winlogbeat start= delayed-auto binPath= "\"$INSTDIR\winlogbeat.exe\" -c \"$INSTDIR\winlogbeat.yml\" -path.home \"$INSTDIR\" -path.data C:\ProgramData\winlogbeat -path.logs C:\ProgramData\winlogbeat\logs"'
26 ExecWait 'net start winlogbeat'
27 SectionEnd
29 Section "uninstall"
30 ExecWait 'net stop winlogbeat'
31 ExecWait 'sc delete winlogbeat'
32 RMDir /r "$INSTDIR"
33 SectionEnd