- Shopfloor PC type menu (CMM, WaxAndTrace, Keyence, Genspect, Display, Standard) - Baseline scripts: OpenText CSF, Start Menu shortcuts, network/WinRM, power/display - Standard type: eDNC + MarkZebra with 64-bit path mirroring - CMM type: Hexagon CLM Tools, PC-DMIS 2016/2019 R2 - Display sub-type: Lobby vs Dashboard - Webapp: enrollment management, image config editor, UI refresh - Upload-Image.ps1: robocopy MCL cache to PXE server - Download-Drivers.ps1: Dell driver download pipeline - Slim Blancco GRUB EFI (10MB -> 660KB) for old hardware compat - Shopfloor display imaging guide docs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
46 lines
1.5 KiB
PowerShell
46 lines
1.5 KiB
PowerShell
# 01-Setup-Display.ps1 — Display-specific setup (runs after Shopfloor baseline)
|
|
# Reads display-type.txt to install either LobbyDisplay or Dashboard kiosk app.
|
|
|
|
$enrollDir = "C:\Enrollment"
|
|
$typeFile = Join-Path $enrollDir "display-type.txt"
|
|
$setupDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
if (-not (Test-Path $typeFile)) {
|
|
Write-Warning "No display-type.txt found - skipping display setup."
|
|
return
|
|
}
|
|
|
|
$displayType = (Get-Content $typeFile -First 1).Trim()
|
|
Write-Host "=== Display Setup: $displayType ==="
|
|
|
|
switch ($displayType) {
|
|
"Lobby" {
|
|
$installer = Join-Path $setupDir "GEAerospaceLobbyDisplaySetup.exe"
|
|
$appName = "Lobby Display"
|
|
}
|
|
"Dashboard" {
|
|
$installer = Join-Path $setupDir "GEAerospaceDashboardSetup.exe"
|
|
$appName = "Dashboard"
|
|
}
|
|
default {
|
|
Write-Warning "Unknown display type: $displayType"
|
|
return
|
|
}
|
|
}
|
|
|
|
if (-not (Test-Path $installer)) {
|
|
Write-Warning "$appName installer not found at $installer - skipping."
|
|
return
|
|
}
|
|
|
|
Write-Host "Installing $appName..."
|
|
$proc = Start-Process -FilePath $installer -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART', "/LOG=C:\Enrollment\$appName-install.log" -Wait -PassThru
|
|
|
|
if ($proc.ExitCode -eq 0) {
|
|
Write-Host "$appName installed successfully."
|
|
} else {
|
|
Write-Warning "$appName exited with code $($proc.ExitCode). Check C:\Enrollment\$appName-install.log"
|
|
}
|
|
|
|
Write-Host "=== Display Setup Complete ==="
|