Shopfloor scripts: em-dash to hyphen, add positional Level param
Replace em-dash characters with plain hyphens across the 5 shopfloor setup scripts (avoids cp1252 mojibake in .bat files and keeps the PowerShell sources consistent). Also adds [Parameter(Position=1)] to Write-PreInstallLog so the Level argument can be passed positionally. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# 01-eDNC.ps1 — Install eDNC and deploy custom eMxInfo.txt (Standard)
|
||||
# 01-eDNC.ps1 - Install eDNC and deploy custom eMxInfo.txt (Standard)
|
||||
|
||||
Write-Host "=== eDNC Setup ==="
|
||||
|
||||
$edncDir = "C:\Enrollment\shopfloor-setup\Standard\eDNC"
|
||||
|
||||
if (-not (Test-Path $edncDir)) {
|
||||
Write-Warning "eDNC folder not found at $edncDir — skipping."
|
||||
Write-Warning "eDNC folder not found at $edncDir - skipping."
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@echo off
|
||||
REM Set-MachineNumber.bat — Wrapper for Set-MachineNumber.ps1
|
||||
REM Set-MachineNumber.bat - Wrapper for Set-MachineNumber.ps1
|
||||
REM Runs the PowerShell helper with bypass execution policy so a double-click
|
||||
REM from the desktop just works.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Set-MachineNumber.ps1 — Update UDC + eDNC machine number on a Standard shopfloor PC
|
||||
# Set-MachineNumber.ps1 - Update UDC + eDNC machine number on a Standard shopfloor PC
|
||||
#
|
||||
# Purpose:
|
||||
# Both UDC and eDNC use the same per-machine identifier ("Workstation Number" /
|
||||
@@ -135,7 +135,7 @@ if (Test-Path $udcExePath) {
|
||||
$summary = ($results -join "`n") + "`n`nTo apply eDNC changes, restart any running DncMain.exe."
|
||||
[System.Windows.Forms.MessageBox]::Show(
|
||||
$summary,
|
||||
"Set Machine Number — Done",
|
||||
"Set Machine Number - Done",
|
||||
[System.Windows.Forms.MessageBoxButtons]::OK,
|
||||
[System.Windows.Forms.MessageBoxIcon]::Information
|
||||
) | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user