[11364] | 1 | ; NSIS installer script for HeuristicLab Hive Slave
|
---|
| 2 | ; NSIS version: v3.0b0
|
---|
| 3 |
|
---|
| 4 | Name "HeuristicLab Hive Slave"
|
---|
| 5 | OutFile "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 |
|
---|
| 11 | InstallDir $PROGRAMFILES\HeuristicLabHiveSlave
|
---|
| 12 | InstallDirRegKey HKLM "Software\HeuristicLabHiveSlave" "Install_Dir"
|
---|
| 13 |
|
---|
| 14 | RequestExecutionLevel admin
|
---|
| 15 |
|
---|
| 16 | Page license
|
---|
| 17 | Page directory
|
---|
| 18 | Page instfiles
|
---|
| 19 |
|
---|
| 20 | UninstPage uninstConfirm
|
---|
| 21 | UninstPage instfiles
|
---|
| 22 |
|
---|
| 23 | LicenseData "..\HeuristicLab\3.3\GNU General Public License.txt"
|
---|
| 24 | Icon "..\HeuristicLab\3.3\HeuristicLab.ico"
|
---|
| 25 |
|
---|
| 26 |
|
---|
| 27 | Section "HeuristicLabHiveSlave (required)"
|
---|
[11366] | 28 | SetOutPath $INSTDIR
|
---|
[11364] | 29 |
|
---|
[11366] | 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"
|
---|
[11364] | 49 |
|
---|
| 50 |
|
---|
[11366] | 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"
|
---|
[11364] | 57 |
|
---|
[11366] | 58 | nsExec::ExecToLog '"$INSTDIR\HeuristicLab.Clients.Hive.Slave.WindowsService.exe" --install'
|
---|
[11364] | 59 |
|
---|
| 60 | SectionEnd
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 | Section "un.Uninstall"
|
---|
[11366] | 64 | DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\HeuristicLabHiveSlave"
|
---|
| 65 | DeleteRegKey HKLM SOFTWARE\HeuristicLabHiveSlave
|
---|
[11364] | 66 |
|
---|
[11366] | 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
|
---|
[11364] | 89 |
|
---|
[11366] | 90 | RMDir "$INSTDIR"
|
---|
| 91 |
|
---|
[11364] | 92 | SectionEnd
|
---|
| 93 |
|
---|
| 94 |
|
---|