diff --git a/playbook/shopfloor-setup/Standard/01-eDNC.ps1 b/playbook/shopfloor-setup/Standard/01-eDNC.ps1 index 38bd372..c8f0cf5 100644 --- a/playbook/shopfloor-setup/Standard/01-eDNC.ps1 +++ b/playbook/shopfloor-setup/Standard/01-eDNC.ps1 @@ -45,7 +45,11 @@ if (-not (Test-Path $edncDir)) { } # --- Find installer --- -$edncMsi = Get-ChildItem -Path $edncDir -Filter "eDNC-*.msi" | Select-Object -First 1 +# Filter is eDNC*.msi (no dash) so we match both vendor naming styles: +# eDNC-6.4.3.msi (dash) and eDNC_6-4-5.msi (underscore). Imaging dir should +# only contain ONE version at a time; rollback to a prior version is handled +# post-imaging via the SFLD share's standard-machine/apps/ alternates. +$edncMsi = Get-ChildItem -Path $edncDir -Filter "eDNC*.msi" | Select-Object -First 1 $emxInfo = Join-Path $edncDir "eMxInfo.txt" # --- 1. Install eDNC --- @@ -54,7 +58,7 @@ if ($edncMsi) { $p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$($edncMsi.FullName)`" /qn /norestart LAUNCHNTLARS=false SITESELECTED=`"$siteName`"" -Wait -PassThru Write-Host " eDNC exit code: $($p.ExitCode)" } else { - Write-Warning "eDNC installer not found in $edncDir (expected eDNC-*.msi)" + Write-Warning "eDNC installer not found in $edncDir (expected eDNC*.msi)" } # --- 2. Mirror x86 install to 64-bit Program Files (app uses hardcoded paths) ---