#3136
[heuristiclab.git] / Installers / HiveJanitorServiceInstaller.nsi
blobf1d40d19caeb9fa054bb8f8cd8cc6b43c3315756
1 /* HeuristicLab
2 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 * This file is part of HeuristicLab.
6 * HeuristicLab is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * HeuristicLab is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
20 ; NSIS installer script for HeuristicLab Hive Janitor Service
21 ; NSIS version: 3.0b0
23 Name "HeuristicLab Hive Janitor Service"
24 OutFile "HeuristicLab Hive Janitor Service Installer.exe"
26 ; Build configuration is either Debug or Release
27 !define BUILDCONFIGURATION "Debug"
28 !define JANITORBUILDPATH "..\HeuristicLab.Services.Hive.JanitorService\3.3\bin\${BUILDCONFIGURATION}"
29 !define VERSION "3.3.16"
31 InstallDir $PROGRAMFILES\HeuristicLabHiveJanitorService
32 RequestExecutionLevel admin
34 Page license
35 Page directory
36 Page instfiles
38 UninstPage uninstConfirm
39 UninstPage instfiles
41 LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
42 Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
45 Section "HeuristicLabHiveJanitorService (required)"
46 SetOutPath $INSTDIR
48 File "${JANITORBUILDPATH}\Google.Protobuf.dll"
49 File "${JANITORBUILDPATH}\HEAL.Attic.dll"
50 ;File "${JANITORBUILDPATH}\GeoIP.dat"
51 File "${JANITORBUILDPATH}\HeuristicLab.Common-3.3.dll"
52 ;File "${JANITORBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
53 File "${JANITORBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
54 File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.dll"
55 File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.DataAccess.dll"
56 File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
57 File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
58 File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
59 File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive-3.3.dll"
60 ;File "${JANITORBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
62 WriteRegStr HKLM SOFTWARE\HeuristicLabHiveJanitorService "Install_Dir" "$INSTDIR"
63 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayName" "HeuristicLabHiveJanitorService"
64 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "UninstallString" '"$INSTDIR\uninstall.exe"'
65 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoModify" 1
66 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoRepair" 1
67 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayVersion" "${VERSION}"
68 WriteUninstaller "uninstall.exe"
70 nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --install'
71 SectionEnd
74 Section "un.Uninstall"
75 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService"
76 DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveJanitorService
78 nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --uninstall'
80 Delete "$INSTDIR\Google.Protobuf.dll"
81 Delete "$INSTDIR\HEAL.Attic.dll"
82 ;Delete "$INSTDIR\GeoIP.dat"
83 Delete "$INSTDIR\HeuristicLab.Common-3.3.dll"
84 ;Delete "$INSTDIR\HeuristicLab.Persistence-3.3.dll"
85 Delete "$INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll"
86 Delete "$INSTDIR\HeuristicLab.Services.Access.dll"
87 Delete "$INSTDIR\HeuristicLab.Services.Access.DataAccess.dll"
88 Delete "$INSTDIR\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
89 Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
90 Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
91 Delete "$INSTDIR\HeuristicLab.Services.Hive-3.3.dll"
92 ;Delete "$INSTDIR\HeuristicLab.Tracing-3.3.dll"
93 Delete "$INSTDIR\uninstall.exe"
95 RMDir "$INSTDIR"
96 SectionEnd