#3145: refactored infix formatter to improve output (less parenthesis) and added...
[heuristiclab.git] / Installers / HiveSlaveInstaller.nsi
blob79c94a9a9412f0d7a815210df7ffe3e19f93f436
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 Slave
21 ; NSIS version: 3.0b0
23 Name "HeuristicLab Hive Slave"
24 OutFile "HeuristicLab Hive Slave Installer.exe"
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"
31 InstallDir $PROGRAMFILES\HeuristicLabHiveSlave
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 "HeuristicLabHiveSlave (required)"
46 SetOutPath $INSTDIR
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"
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"
77 nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
78 SectionEnd
81 Section "un.Uninstall"
82 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
83 DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
85 nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --uninstall'
87 RMDir /r "$INSTDIR"
88 SectionEnd