# 09-Setup-WaxAndTrace.ps1 - Wax and Trace pc-type setup
#
# Currently OpenText-only (same as common). Wax-and-Trace-specific software
# will be added here when the application catalog is finalized.

$lib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Set-OpenTextAutoStart.ps1'

Write-Host '=== Wax and Trace Setup ==='
$pxeStatusLib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Send-PxeStatus.ps1'
if (Test-Path $pxeStatusLib) {
    try { . $pxeStatusLib; Send-PxeStatus -Stage '09-Setup-WaxAndTrace: starting' -StageIndex 3 -StageTotal 8 } catch { }
}
if (Test-Path -LiteralPath $lib) {
    & $lib
} else {
    Write-Warning "Set-OpenTextAutoStart.ps1 not found at $lib - OpenText auto-start NOT configured"
}
# TODO: Wax and Trace-specific apps go here.
if (Get-Command Send-PxeStatus -ErrorAction SilentlyContinue) {
    Send-PxeStatus -Stage '09-Setup-WaxAndTrace: complete' -StageIndex 4 -StageTotal 8
}
Write-Host '=== Wax and Trace Setup Complete ==='
