forked from Light-Heart-Labs/DreamServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
24 lines (19 loc) · 845 Bytes
/
install.ps1
File metadata and controls
24 lines (19 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Dream Server Root Installer (Windows)
# Delegates to dream-server/installers/windows/install-windows.ps1
param(
[Parameter(ValueFromRemainingArguments=$true)]
[string[]]$RemainingArgs
)
$ErrorActionPreference = "Stop"
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Write-Host "Dream Server Installer" -ForegroundColor Cyan
Write-Host ""
# Delegate to Windows installer
$DreamServerInstaller = Join-Path (Join-Path (Join-Path $ScriptDir "dream-server") "installers") "windows" | Join-Path -ChildPath "install-windows.ps1"
if (-not (Test-Path $DreamServerInstaller)) {
Write-Host "Error: Windows installer not found" -ForegroundColor Red
Write-Host "Expected: $DreamServerInstaller" -ForegroundColor Red
exit 1
}
# Execute Windows installer with all passed arguments
& $DreamServerInstaller @RemainingArgs