[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 |
|
---|
[11364] | 20 | ; NSIS installer script for HeuristicLab Hive Slave
|
---|
[11599] | 21 | ; NSIS version: 3.0b0
|
---|
[11364] | 22 |
|
---|
| 23 | Name "HeuristicLab Hive Slave"
|
---|
| 24 | OutFile "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}"
|
---|
[12753] | 29 | !define VERSION "3.3.12"
|
---|
[11364] | 30 |
|
---|
| 31 | InstallDir $PROGRAMFILES\HeuristicLabHiveSlave
|
---|
| 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 "HeuristicLabHiveSlave (required)"
|
---|
[11366] | 46 | SetOutPath $INSTDIR
|
---|
[11364] | 47 |
|
---|
[11366] | 48 | File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe"
|
---|
| 49 | File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Common-3.3.dll"
|
---|
| 50 | File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config"
|
---|
| 51 | File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll"
|
---|
| 52 | File "${SLAVEBUILDPATH}\HeuristicLab.Clients.Hive-3.3.dll"
|
---|
| 53 | File "${SLAVEBUILDPATH}\HeuristicLab.Collections-3.3.dll"
|
---|
| 54 | File "${SLAVEBUILDPATH}\HeuristicLab.Common.Resources-3.3.dll"
|
---|
| 55 | File "${SLAVEBUILDPATH}\HeuristicLab.Common-3.3.dll"
|
---|
| 56 | File "${SLAVEBUILDPATH}\HeuristicLab.Core-3.3.dll"
|
---|
| 57 | File "${SLAVEBUILDPATH}\HeuristicLab.Data-3.3.dll"
|
---|
| 58 | File "${SLAVEBUILDPATH}\HeuristicLab.Hive-3.3.dll"
|
---|
| 59 | File "${SLAVEBUILDPATH}\HeuristicLab.MainForm-3.3.dll"
|
---|
| 60 | File "${SLAVEBUILDPATH}\HeuristicLab.Optimization-3.3.dll"
|
---|
| 61 | File "${SLAVEBUILDPATH}\HeuristicLab.Parameters-3.3.dll"
|
---|
| 62 | File "${SLAVEBUILDPATH}\HeuristicLab.Persistence-3.3.dll"
|
---|
| 63 | File "${SLAVEBUILDPATH}\HeuristicLab.PluginInfrastructure-3.3.dll"
|
---|
| 64 | File "${SLAVEBUILDPATH}\HeuristicLab.Tracing-3.3.dll"
|
---|
[11364] | 65 |
|
---|
| 66 |
|
---|
[11366] | 67 | WriteRegStr HKLM SOFTWARE\HeuristicLabHiveSlave "Install_Dir" "$INSTDIR"
|
---|
| 68 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayName" "HeuristicLabHiveSlave"
|
---|
| 69 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
---|
| 70 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoModify" 1
|
---|
| 71 | WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "NoRepair" 1
|
---|
[11599] | 72 | WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave" "DisplayVersion" "${VERSION}"
|
---|
[11366] | 73 | WriteUninstaller "uninstall.exe"
|
---|
[11364] | 74 |
|
---|
[11366] | 75 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
|
---|
[11364] | 76 | SectionEnd
|
---|
| 77 |
|
---|
| 78 |
|
---|
| 79 | Section "un.Uninstall"
|
---|
[11366] | 80 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
|
---|
| 81 | DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
|
---|
[11364] | 82 |
|
---|
[11366] | 83 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --uninstall'
|
---|
| 84 |
|
---|
| 85 | Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe
|
---|
| 86 | Delete $INSTDIR\HeuristicLab.Clients.Common-3.3.dll
|
---|
| 87 | Delete $INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe.config
|
---|
| 88 | Delete $INSTDIR\HeuristicLab.Clients.Hive.SlaveCore-3.3.dll
|
---|
| 89 | Delete $INSTDIR\HeuristicLab.Clients.Hive-3.3.dll
|
---|
| 90 | Delete $INSTDIR\HeuristicLab.Collections-3.3.dll
|
---|
| 91 | Delete $INSTDIR\HeuristicLab.Common.Resources-3.3.dll
|
---|
| 92 | Delete $INSTDIR\HeuristicLab.Common-3.3.dll
|
---|
| 93 | Delete $INSTDIR\HeuristicLab.Core-3.3.dll
|
---|
| 94 | Delete $INSTDIR\HeuristicLab.Data-3.3.dll
|
---|
| 95 | Delete $INSTDIR\HeuristicLab.Hive-3.3.dll
|
---|
| 96 | Delete $INSTDIR\HeuristicLab.MainForm-3.3.dll
|
---|
| 97 | Delete $INSTDIR\HeuristicLab.Optimization-3.3.dll
|
---|
| 98 | Delete $INSTDIR\HeuristicLab.Parameters-3.3.dll
|
---|
| 99 | Delete $INSTDIR\HeuristicLab.Persistence-3.3.dll
|
---|
| 100 | Delete $INSTDIR\HeuristicLab.PluginInfrastructure-3.3.dll
|
---|
| 101 | Delete $INSTDIR\HeuristicLab.Tracing-3.3.dll
|
---|
| 102 | Delete $INSTDIR\uninstall.exe
|
---|
[11364] | 103 |
|
---|
[11366] | 104 | RMDir "$INSTDIR"
|
---|
[11364] | 105 | SectionEnd
|
---|
| 106 |
|
---|
| 107 |
|
---|