Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Breadcrumbs/Installers/HiveJanitorServiceInstaller.nsi @ 12962

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

#2244 added installer script for the hive janitor

File size: 3.3 KB
Line 
1; NSIS installer script for HeuristicLab Hive Janitor Service
2; NSIS version: v3.0b0
3
4Name "HeuristicLab Hive Janitor Service"
5OutFile "HeuristicLab Hive Janitor Service Installer.exe"
6
7; Build configuration is either Debug or Release
8!define BUILDCONFIGURATION "Debug"
9!define JANITORBUILDPATH "..\HeuristicLab.Services.Hive.JanitorService\3.3\bin\${BUILDCONFIGURATION}"
10
11InstallDir $PROGRAMFILES\HeuristicLabHiveJanitorService
12InstallDirRegKey HKLM "Software\HeuristicLabHiveJanitorService" "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 "HeuristicLabHiveJanitorService (required)"
28  SetOutPath $INSTDIR
29
30  File "${JANITORBUILDPATH}\GeoIP.dat"
31  File "${JANITORBUILDPATH}\HeuristicLab.Common-3.3.dll"
32  File "${JANITORBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
33  File "${JANITORBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
34  File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.dll"
35  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
36  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
37  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
38  File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive-3.3.dll"
39  File "${JANITORBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
40  File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib License.txt"
41  File "${JANITORBUILDPATH}\ICSharpCode.SharpZipLib.dll"
42
43  WriteRegStr HKLM SOFTWARE\HeuristicLabHiveJanitorService "Install_Dir" "$INSTDIR"
44  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayName" "HeuristicLabHiveJanitorService"
45  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "UninstallString" '"$INSTDIR\uninstall.exe"'
46  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoModify" 1
47  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoRepair" 1
48  WriteUninstaller "uninstall.exe"
49
50  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --install'
51
52SectionEnd
53
54
55Section "un.Uninstall" 
56  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService"
57  DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveJanitorService
58   
59  nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --uninstall'
60   
61  Delete "$INSTDIR\GeoIP.dat"
62  Delete "$INSTDIR\HeuristicLab.Common-3.3.dll"
63  Delete "$INSTDIR\HeuristicLab.Persistence-3.3.dll"
64  Delete "$INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll"
65  Delete "$INSTDIR\HeuristicLab.Services.Access.dll"
66  Delete "$INSTDIR\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
67  Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
68  Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
69  Delete "$INSTDIR\HeuristicLab.Services.Hive-3.3.dll"
70  Delete "$INSTDIR\HeuristicLab.Tracing-3.3.dll"
71  Delete "$INSTDIR\ICSharpCode.SharpZipLib License.txt"
72  Delete "$INSTDIR\ICSharpCode.SharpZipLib.dll"   
73  Delete "$INSTDIR\uninstall.exe"
74
75  RMDir "$INSTDIR"
76
77SectionEnd
78
79
Note: See TracBrowser for help on using the repository browser.