Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Breadcrumbs/Installers/HiveSlaveInstaller.nsi @ 12012

Last change on this file since 12012 was 11366, checked in by ascheibe, 10 years ago

#2244 added installer script for the hive janitor

File size: 3.9 KB
Line 
1; NSIS installer script for HeuristicLab Hive Slave
2; NSIS version: v3.0b0
3
4Name "HeuristicLab Hive Slave"
5OutFile "HeuristicLab Hive Slave Installer.exe"
6
7; Build configuration is either Debug or Release
8!define BUILDCONFIGURATION "Debug"
9!define SLAVEBUILDPATH "..\HeuristicLab.Clients.Hive.Slave.WindowsService\3.3\bin\${BUILDCONFIGURATION}"
10
11InstallDir $PROGRAMFILES\HeuristicLabHiveSlave
12InstallDirRegKey HKLM "Software\HeuristicLabHiveSlave" "Install_Dir"
13
14RequestExecutionLevel admin
15
16Page license
17Page directory
18Page instfiles
19
20UninstPage uninstConfirm
21UninstPage instfiles
22
23LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
24Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
25
26
27Section "HeuristicLabHiveSlave (required)"
28  SetOutPath $INSTDIR
29
30  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe"
31  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Common-3.3.dll"
32  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config"
33  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll"
34  File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive-3.3.dll"
35  File "${SLAVEBUILDPATH}\HeuristicLab.Collections-3.3.dll"
36  File "${SLAVEBUILDPATH}\HeuristicLab.Common.Resources-3.3.dll"
37  File "${SLAVEBUILDPATH}\HeuristicLab.Common-3.3.dll"
38  File "${SLAVEBUILDPATH}\HeuristicLab.Core-3.3.dll"
39  File "${SLAVEBUILDPATH}\HeuristicLab.Data-3.3.dll"
40  File "${SLAVEBUILDPATH}\HeuristicLab.Hive-3.3.dll"
41  File "${SLAVEBUILDPATH}\HeuristicLab.MainForm-3.3.dll"
42  File "${SLAVEBUILDPATH}\HeuristicLab.Optimization-3.3.dll"
43  File "${SLAVEBUILDPATH}\HeuristicLab.Parameters-3.3.dll"
44  File "${SLAVEBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
45  File "${SLAVEBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
46  File "${SLAVEBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
47  File "${SLAVEBUILDPATH}\ICSharpCode.SharpZipLib License.txt"
48  File "${SLAVEBUILDPATH}\ICSharpCode.SharpZipLib.dll"
49
50
51  WriteRegStr HKLM SOFTWARE\HeuristicLabHiveSlave "Install_Dir" "$INSTDIR"
52  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayName" "HeuristicLabHiveSlave"
53  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "UninstallString" '"$INSTDIR\uninstall.exe"'
54  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoModify" 1
55  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoRepair" 1
56  WriteUninstaller "uninstall.exe"
57
58  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
59
60SectionEnd
61
62
63Section "un.Uninstall" 
64  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
65  DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
66
67  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --uninstall'
68   
69  Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe
70  Delete $INSTDIR\HeuristicLab.Clients.Common-3.3.dll
71  Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config
72  Delete $INSTDIR\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll
73  Delete $INSTDIR\HeuristicLab.Clients.Hive-3.3.dll
74  Delete $INSTDIR\HeuristicLab.Collections-3.3.dll
75  Delete $INSTDIR\HeuristicLab.Common.Resources-3.3.dll
76  Delete $INSTDIR\HeuristicLab.Common-3.3.dll
77  Delete $INSTDIR\HeuristicLab.Core-3.3.dll
78  Delete $INSTDIR\HeuristicLab.Data-3.3.dll
79  Delete $INSTDIR\HeuristicLab.Hive-3.3.dll
80  Delete $INSTDIR\HeuristicLab.MainForm-3.3.dll
81  Delete $INSTDIR\HeuristicLab.Optimization-3.3.dll
82  Delete $INSTDIR\HeuristicLab.Parameters-3.3.dll
83  Delete $INSTDIR\HeuristicLab.Persistence-3.3.dll
84  Delete $INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll
85  Delete $INSTDIR\HeuristicLab.Tracing-3.3.dll
86  Delete "$INSTDIR\ICSharpCode.SharpZipLib License.txt"
87  Delete $INSTDIR\ICSharpCode.SharpZipLib.dll
88  Delete $INSTDIR\uninstall.exe
89
90  RMDir "$INSTDIR"
91
92SectionEnd
93
94
Note: See TracBrowser for help on using the repository browser.