Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/Installers/HiveJanitorServiceInstaller.nsi @ 11599

Last change on this file since 11599 was 11599, checked in by ascheibe, 9 years ago

#2244 added license headers and version information

File size: 4.2 KB
Line 
1/* HeuristicLab
2 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
3 *
4 * This file is part of HeuristicLab.
5 *
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.
10 *
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.
15 *
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/>.
18 */
19 
20; NSIS installer script for HeuristicLab Hive Janitor Service
21; NSIS version: 3.0b0
22
23Name "HeuristicLab Hive Janitor Service"
24OutFile "HeuristicLab Hive Janitor Service Installer.exe"
25
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.10"
30
31InstallDir $PROGRAMFILES\HeuristicLabHiveJanitorService
32RequestExecutionLevel admin
33
34Page license
35Page directory
36Page instfiles
37
38UninstPage uninstConfirm
39UninstPage instfiles
40
41LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
42Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
43
44
45Section "HeuristicLabHiveJanitorService (required)"
46  SetOutPath $INSTDIR
47
48  File "${JANITORBUILDPATH}\GeoIP.dat"
49  File "${JANITORBUILDPATH}\HeuristicLab.Common-3.3.dll"
50  File "${JANITORBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
51  File "${JANITORBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
52  File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.dll"
53  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
54  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
55  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
56  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive-3.3.dll"
57  File "${JANITORBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
58  File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib License.txt"
59  File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib.dll"
60
61  WriteRegStr HKLM SOFTWARE\HeuristicLabHiveJanitorService "Install_Dir" "$INSTDIR"
62  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayName" "HeuristicLabHiveJanitorService"
63  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "UninstallString" '"$INSTDIR\uninstall.exe"'
64  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoModify" 1
65  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoRepair" 1
66  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayVersion" "${VERSION}"
67  WriteUninstaller "uninstall.exe"
68
69  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --install'
70SectionEnd
71
72
73Section "un.Uninstall" 
74  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService"
75  DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveJanitorService
76   
77  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --uninstall'
78   
79  Delete "$INSTDIR\GeoIP.dat"
80  Delete "$INSTDIR\HeuristicLab.Common-3.3.dll"
81  Delete "$INSTDIR\HeuristicLab.Persistence-3.3.dll"
82  Delete "$INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll"
83  Delete "$INSTDIR\HeuristicLab.Services.Access.dll"
84  Delete "$INSTDIR\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
85  Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
86  Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
87  Delete "$INSTDIR\HeuristicLab.Services.Hive-3.3.dll"
88  Delete "$INSTDIR\HeuristicLab.Tracing-3.3.dll"
89  Delete "$INSTDIR\ICSharpCode.SharpZipLib License.txt"
90  Delete "$INSTDIR\ICSharpCode.SharpZipLib.dll"   
91  Delete "$INSTDIR\uninstall.exe"
92
93  RMDir "$INSTDIR"
94SectionEnd
95
96
Note: See TracBrowser for help on using the repository browser.