Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/Installers/HiveSlaveInstaller.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.8 KB
RevLine 
[11599]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 
[11364]20; NSIS installer script for HeuristicLab Hive Slave
[11599]21; NSIS version: 3.0b0
[11364]22
23Name "HeuristicLab Hive Slave"
24OutFile "HeuristicLab Hive Slave Installer.exe"
25
26; Build configuration is either Debug or Release
27!define BUILDCONFIGURATION "Debug"
28!define SLAVEBUILDPATH "..\HeuristicLab.Clients.Hive.Slave.WindowsService\3.3\bin\${BUILDCONFIGURATION}"
[11599]29!define VERSION "3.3.10"
[11364]30
31InstallDir $PROGRAMFILES\HeuristicLabHiveSlave
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 "HeuristicLabHiveSlave (required)"
[11366]46  SetOutPath $INSTDIR
[11364]47
[11366]48  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe"
49  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Common-3.3.dll"
50  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config"
51  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll"
52  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive-3.3.dll"
53  File "${SLAVEBUILDPATH}\HeuristicLab.Collections-3.3.dll"
54  File "${SLAVEBUILDPATH}\HeuristicLab.Common.Resources-3.3.dll"
55  File "${SLAVEBUILDPATH}\HeuristicLab.Common-3.3.dll"
56  File "${SLAVEBUILDPATH}\HeuristicLab.Core-3.3.dll"
57  File "${SLAVEBUILDPATH}\HeuristicLab.Data-3.3.dll"
58  File "${SLAVEBUILDPATH}\HeuristicLab.Hive-3.3.dll"
59  File "${SLAVEBUILDPATH}\HeuristicLab.MainForm-3.3.dll"
60  File "${SLAVEBUILDPATH}\HeuristicLab.Optimization-3.3.dll"
61  File "${SLAVEBUILDPATH}\HeuristicLab.Parameters-3.3.dll"
62  File "${SLAVEBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
63  File "${SLAVEBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
64  File "${SLAVEBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
65  File "${SLAVEBUILDPATH}\ICSharpCode.SharpZipLib License.txt"
66  File "${SLAVEBUILDPATH}\ICSharpCode.SharpZipLib.dll"
[11364]67
68
[11366]69  WriteRegStr HKLM SOFTWARE\HeuristicLabHiveSlave "Install_Dir" "$INSTDIR"
70  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayName" "HeuristicLabHiveSlave"
71  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "UninstallString" '"$INSTDIR\uninstall.exe"'
72  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoModify" 1
73  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoRepair" 1
[11599]74  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayVersion" "${VERSION}"
[11366]75  WriteUninstaller "uninstall.exe"
[11364]76
[11366]77  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
[11364]78SectionEnd
79
80
81Section "un.Uninstall" 
[11366]82  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
83  DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
[11364]84
[11366]85  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --uninstall'
86   
87  Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe
88  Delete $INSTDIR\HeuristicLab.Clients.Common-3.3.dll
89  Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config
90  Delete $INSTDIR\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll
91  Delete $INSTDIR\HeuristicLab.Clients.Hive-3.3.dll
92  Delete $INSTDIR\HeuristicLab.Collections-3.3.dll
93  Delete $INSTDIR\HeuristicLab.Common.Resources-3.3.dll
94  Delete $INSTDIR\HeuristicLab.Common-3.3.dll
95  Delete $INSTDIR\HeuristicLab.Core-3.3.dll
96  Delete $INSTDIR\HeuristicLab.Data-3.3.dll
97  Delete $INSTDIR\HeuristicLab.Hive-3.3.dll
98  Delete $INSTDIR\HeuristicLab.MainForm-3.3.dll
99  Delete $INSTDIR\HeuristicLab.Optimization-3.3.dll
100  Delete $INSTDIR\HeuristicLab.Parameters-3.3.dll
101  Delete $INSTDIR\HeuristicLab.Persistence-3.3.dll
102  Delete $INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll
103  Delete $INSTDIR\HeuristicLab.Tracing-3.3.dll
104  Delete "$INSTDIR\ICSharpCode.SharpZipLib License.txt"
105  Delete $INSTDIR\ICSharpCode.SharpZipLib.dll
106  Delete $INSTDIR\uninstall.exe
[11364]107
[11366]108  RMDir "$INSTDIR"
[11364]109SectionEnd
110
111
Note: See TracBrowser for help on using the repository browser.