1 | ; NSIS installer script for HeuristicLab Hive Janitor Service
|
---|
2 | ; NSIS version: v3.0b0
|
---|
3 |
|
---|
4 | Name "HeuristicLab Hive Janitor Service"
|
---|
5 | OutFile "HeuristicLab Hive Janitor Service Installer.exe"
|
---|
6 |
|
---|
7 | ; Build configuration is either Debug or Release
|
---|
8 | !define BUILDCONFIGURATION "Debug"
|
---|
9 | !define JANITORBUILDPATH "..\HeuristicLab.Services.Hive.JanitorService\3.3\bin\${BUILDCONFIGURATION}"
|
---|
10 |
|
---|
11 | InstallDir $PROGRAMFILES\HeuristicLabHiveJanitorService
|
---|
12 | InstallDirRegKey HKLM "Software\HeuristicLabHiveJanitorService" "Install_Dir"
|
---|
13 |
|
---|
14 | RequestExecutionLevel admin
|
---|
15 |
|
---|
16 | Page license
|
---|
17 | Page directory
|
---|
18 | Page instfiles
|
---|
19 |
|
---|
20 | UninstPage uninstConfirm
|
---|
21 | UninstPage instfiles
|
---|
22 |
|
---|
23 | LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
|
---|
24 | Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
|
---|
25 |
|
---|
26 |
|
---|
27 | Section "HeuristicLabHiveJanitorService (required)"
|
---|
28 | SetOutPath $INSTDIR
|
---|
29 |
|
---|
30 | File "${JANITORBUILDPATH}\GeoIP.dat"
|
---|
31 | File "${JANITORBUILDPATH}\HeuristicLab.Common-3.3.dll"
|
---|
32 | File "${JANITORBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
|
---|
33 | File "${JANITORBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
|
---|
34 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.dll"
|
---|
35 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
|
---|
36 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
|
---|
37 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
|
---|
38 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive-3.3.dll"
|
---|
39 | File "${JANITORBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
|
---|
40 | File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib License.txt"
|
---|
41 | File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib.dll"
|
---|
42 |
|
---|
43 | WriteRegStr HKLM SOFTWARE\HeuristicLabHiveJanitorService "Install_Dir" "$INSTDIR"
|
---|
44 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayName" "HeuristicLabHiveJanitorService"
|
---|
45 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
---|
46 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoModify" 1
|
---|
47 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoRepair" 1
|
---|
48 | WriteUninstaller "uninstall.exe"
|
---|
49 |
|
---|
50 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --install'
|
---|
51 |
|
---|
52 | SectionEnd
|
---|
53 |
|
---|
54 |
|
---|
55 | Section "un.Uninstall"
|
---|
56 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService"
|
---|
57 | DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveJanitorService
|
---|
58 |
|
---|
59 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --uninstall'
|
---|
60 |
|
---|
61 | Delete "$INSTDIR\GeoIP.dat"
|
---|
62 | Delete "$INSTDIR\HeuristicLab.Common-3.3.dll"
|
---|
63 | Delete "$INSTDIR\HeuristicLab.Persistence-3.3.dll"
|
---|
64 | Delete "$INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll"
|
---|
65 | Delete "$INSTDIR\HeuristicLab.Services.Access.dll"
|
---|
66 | Delete "$INSTDIR\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
|
---|
67 | Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
|
---|
68 | Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
|
---|
69 | Delete "$INSTDIR\HeuristicLab.Services.Hive-3.3.dll"
|
---|
70 | Delete "$INSTDIR\HeuristicLab.Tracing-3.3.dll"
|
---|
71 | Delete "$INSTDIR\ICSharpCode.SharpZipLib License.txt"
|
---|
72 | Delete "$INSTDIR\ICSharpCode.SharpZipLib.dll"
|
---|
73 | Delete "$INSTDIR\uninstall.exe"
|
---|
74 |
|
---|
75 | RMDir "$INSTDIR"
|
---|
76 |
|
---|
77 | SectionEnd
|
---|
78 |
|
---|
79 |
|
---|