[11599] | 1 | /* HeuristicLab
|
---|
[12497] | 2 | * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
[11599] | 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 |
|
---|
[11366] | 20 | ; NSIS installer script for HeuristicLab Hive Janitor Service
|
---|
[11599] | 21 | ; NSIS version: 3.0b0
|
---|
[11366] | 22 |
|
---|
| 23 | Name "HeuristicLab Hive Janitor Service"
|
---|
| 24 | OutFile "HeuristicLab Hive Janitor Service Installer.exe"
|
---|
| 25 |
|
---|
| 26 | ; Build configuration is either Debug or Release
|
---|
| 27 | !define BUILDCONFIGURATION "Debug"
|
---|
| 28 | !define JANITORBUILDPATH "..\HeuristicLab.Services.Hive.JanitorService\3.3\bin\${BUILDCONFIGURATION}"
|
---|
[12753] | 29 | !define VERSION "3.3.12"
|
---|
[11366] | 30 |
|
---|
| 31 | InstallDir $PROGRAMFILES\HeuristicLabHiveJanitorService
|
---|
| 32 | RequestExecutionLevel admin
|
---|
| 33 |
|
---|
| 34 | Page license
|
---|
| 35 | Page directory
|
---|
| 36 | Page instfiles
|
---|
| 37 |
|
---|
| 38 | UninstPage uninstConfirm
|
---|
| 39 | UninstPage instfiles
|
---|
| 40 |
|
---|
| 41 | LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
|
---|
| 42 | Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | Section "HeuristicLabHiveJanitorService (required)"
|
---|
| 46 | SetOutPath $INSTDIR
|
---|
| 47 |
|
---|
| 48 | File "${JANITORBUILDPATH}\GeoIP.dat"
|
---|
| 49 | File "${JANITORBUILDPATH}\HeuristicLab.Common-3.3.dll"
|
---|
| 50 | File "${JANITORBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
|
---|
| 51 | File "${JANITORBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
|
---|
| 52 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.dll"
|
---|
[12878] | 53 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Access.DataAccess.dll"
|
---|
[11366] | 54 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
|
---|
| 55 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
|
---|
| 56 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
|
---|
| 57 | File "${JANITORBUILDPATH}\HeuristicLab.Services.Hive-3.3.dll"
|
---|
| 58 | File "${JANITORBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
|
---|
[11652] | 59 |
|
---|
[11366] | 60 | WriteRegStr HKLM SOFTWARE\HeuristicLabHiveJanitorService "Install_Dir" "$INSTDIR"
|
---|
| 61 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayName" "HeuristicLabHiveJanitorService"
|
---|
| 62 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
---|
| 63 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoModify" 1
|
---|
| 64 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "NoRepair" 1
|
---|
[11599] | 65 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService" "DisplayVersion" "${VERSION}"
|
---|
[11366] | 66 | WriteUninstaller "uninstall.exe"
|
---|
| 67 |
|
---|
| 68 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --install'
|
---|
| 69 | SectionEnd
|
---|
| 70 |
|
---|
| 71 |
|
---|
| 72 | Section "un.Uninstall"
|
---|
| 73 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveJanitorService"
|
---|
| 74 | DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveJanitorService
|
---|
| 75 |
|
---|
| 76 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe" --uninstall'
|
---|
| 77 |
|
---|
| 78 | Delete "$INSTDIR\GeoIP.dat"
|
---|
| 79 | Delete "$INSTDIR\HeuristicLab.Common-3.3.dll"
|
---|
| 80 | Delete "$INSTDIR\HeuristicLab.Persistence-3.3.dll"
|
---|
| 81 | Delete "$INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll"
|
---|
| 82 | Delete "$INSTDIR\HeuristicLab.Services.Access.dll"
|
---|
| 83 | Delete "$INSTDIR\HeuristicLab.Services.Hive.DataAccess-3.3.dll"
|
---|
| 84 | Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe"
|
---|
| 85 | Delete "$INSTDIR\HeuristicLab.Services.Hive.JanitorService-3.3.exe.config"
|
---|
| 86 | Delete "$INSTDIR\HeuristicLab.Services.Hive-3.3.dll"
|
---|
| 87 | Delete "$INSTDIR\HeuristicLab.Tracing-3.3.dll"
|
---|
| 88 | Delete "$INSTDIR\uninstall.exe"
|
---|
| 89 |
|
---|
| 90 | RMDir "$INSTDIR"
|
---|
| 91 | SectionEnd
|
---|
| 92 |
|
---|
| 93 |
|
---|