Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/Installers/HiveSlaveInstaller.nsi @ 17836

Last change on this file since 17836 was 17576, checked in by jkarder, 5 years ago

#3063: minor cleanup

  • renamed UpdateJobState to UpdateTaskState
  • updated HiveSlaveInstaller.nsi
File size: 3.8 KB
Line 
1/* HeuristicLab
2 * Copyright (C) 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 Slave
21; NSIS version: 3.0b0
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}"
29!define VERSION "3.3.16"
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)"
46  SetOutPath $INSTDIR
47
48  File "${SLAVEBUILDPATH}\Google.Protobuf.dll"
49  File "${SLAVEBUILDPATH}\HEAL.Attic.dll"
50  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Common-3.3.dll"
51  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe"
52  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config"
53  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll"
54  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive-3.3.dll"
55  File "${SLAVEBUILDPATH}\HeuristicLab.Collections-3.3.dll"
56  File "${SLAVEBUILDPATH}\HeuristicLab.Common.Resources-3.3.dll"
57  File "${SLAVEBUILDPATH}\HeuristicLab.Common-3.3.dll"
58  File "${SLAVEBUILDPATH}\HeuristicLab.Core-3.3.dll"
59  File "${SLAVEBUILDPATH}\HeuristicLab.Data-3.3.dll"
60  File "${SLAVEBUILDPATH}\HeuristicLab.Hive-3.3.dll"
61  File "${SLAVEBUILDPATH}\HeuristicLab.MainForm-3.3.dll"
62  File "${SLAVEBUILDPATH}\HeuristicLab.Optimization-3.3.dll"
63  File "${SLAVEBUILDPATH}\HeuristicLab.Parameters-3.3.dll"
64  File "${SLAVEBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
65  File "${SLAVEBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
66  File "${SLAVEBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
67
68
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
74  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayVersion" "${VERSION}"
75  WriteUninstaller "uninstall.exe"
76
77  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
78SectionEnd
79
80
81Section "un.Uninstall" 
82  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
83  DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
84
85  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --uninstall'
86
87  RMDir /r "$INSTDIR"
88SectionEnd
89
90
Note: See TracBrowser for help on using the repository browser.