Wax/Trace: per-bay FormTracePak version via bay-config.csv
Bays span 7 FormTracePak versions (5.510 - 6.213) and 3 sub-versions (AVANT / CV-4500 / CV-3200), each with a unique licensing USER ID. Previously all bays got v6.213 with no model/USER hint to the tech. - bay-config.csv: 15 rows mapping asset_tag to ftpak_version + model + user_id. - resolve-bay-config.ps1: WinPE-runnable resolver. Looks up the asset and writes version.txt / model.txt / userid.txt / bay-info.txt under W:\Enrollment\waxtrace\. - startnet.cmd: xcopy WaxTrace bundle minus formtracepak\, invoke the resolver with %MACHINENUM%, then cherry-pick only the matching FORMTRACEPAK-V<ver>.iso (~2 GB local vs ~12 GB if all were staged). - 09-Setup-WaxAndTrace.ps1: read the per-bay files, mount the right ISO, drop <asset>-FTPak-install-info.txt on SupportUser's desktop, and print a banner with MODEL + USER ID so the tech has them top-of-mind when Setup.exe dialogs come up. - sync-waxtrace.sh: loop over all FORMTRACEPAK-V*.iso instead of hard-coding v6.213; also push bay-config.csv + resolve-bay-config.ps1 to the share.
This commit is contained in:
@@ -482,18 +482,48 @@ if exist "Y:\installers-post\keyence\%KEYENCEMODEL%\manifest.json" (
|
||||
:skip_keyence_stage
|
||||
|
||||
REM --- Stage WaxTrace bootstrap bundle (wax/trace gea-shopfloor-waxtrace only) ---
|
||||
REM Copies the FormTracePak master capture (~110 MB compressed) + HASP +
|
||||
REM VC++ redists + per-machine cal ISOs from the enrollment share onto the
|
||||
REM target disk so 09-Setup-WaxAndTrace.ps1 can install FormTracePak via
|
||||
REM xcopy + reg-import (bypassing Mitutoyo's CD-ROM-bound VB6 wrapper).
|
||||
REM Three-step process:
|
||||
REM 1. xcopy installers-post\waxtrace -> W:\WaxTrace-Install (everything
|
||||
REM EXCEPT the formtracepak\ subdir which carries all 7 version ISOs)
|
||||
REM 2. resolve-bay-config.ps1: reads bay-config.csv + asset_tag, writes
|
||||
REM W:\Enrollment\waxtrace\{version,model,userid}.txt for 09-Setup to read
|
||||
REM 3. xcopy ONLY the bay's matching FORMTRACEPAK-V<ver>.iso from
|
||||
REM Y:\installers-post\waxtrace\formtracepak\ onto the target disk
|
||||
REM (so 09-Setup-WaxAndTrace.ps1 mounts the right version per bay)
|
||||
if /i not "%PCTYPE%"=="gea-shopfloor-waxtrace" goto skip_waxtrace_stage
|
||||
if exist "Y:\installers-post\waxtrace\waxtrace-manifest.json" (
|
||||
mkdir W:\WaxTrace-Install 2>NUL
|
||||
xcopy /E /Y /I "Y:\installers-post\waxtrace" "W:\WaxTrace-Install\"
|
||||
echo Staged WaxTrace bootstrap to W:\WaxTrace-Install.
|
||||
if not exist "Y:\installers-post\waxtrace\waxtrace-manifest.json" goto skip_waxtrace_missing
|
||||
mkdir W:\WaxTrace-Install 2>NUL
|
||||
REM xcopy everything except the formtracepak\ dir (we cherry-pick one ISO below).
|
||||
xcopy /E /Y /I /EXCLUDE:NUL "Y:\installers-post\waxtrace" "W:\WaxTrace-Install\" >NUL 2>NUL
|
||||
REM (Exclude file via /EXCLUDE expects a file; simpler to xcopy the whole tree
|
||||
REM then delete the formtracepak\ subdir + re-create with just the matched ISO.)
|
||||
if exist "W:\WaxTrace-Install\formtracepak" rmdir /S /Q "W:\WaxTrace-Install\formtracepak"
|
||||
mkdir W:\WaxTrace-Install\formtracepak 2>NUL
|
||||
echo Staged WaxTrace bootstrap minus formtracepak\ to W:\WaxTrace-Install.
|
||||
REM Resolve bay-config: writes W:\Enrollment\waxtrace\{version,model,userid}.txt
|
||||
mkdir W:\Enrollment\waxtrace 2>NUL
|
||||
if not "%MACHINENUM%"=="" (
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "Y:\installers-post\waxtrace\resolve-bay-config.ps1" -Asset "%MACHINENUM%" -OutDir "W:\Enrollment\waxtrace"
|
||||
) else (
|
||||
echo WARNING: Y:\installers-post\waxtrace not found - WaxTrace PC cannot install FormTracePak at imaging time.
|
||||
echo WARNING: no MACHINENUM set - skipping bay-config resolve. 09-Setup-WaxAndTrace will abort cleanly with no version.
|
||||
)
|
||||
REM Read the resolved version + xcopy ONLY that FTPak ISO (avoids dumping 12 GB
|
||||
REM of ISOs on the bay disk; only the matched ~2 GB ISO lands locally).
|
||||
set WTVER=
|
||||
if exist W:\Enrollment\waxtrace\version.txt set /p WTVER=<W:\Enrollment\waxtrace\version.txt
|
||||
if not "%WTVER%"=="" (
|
||||
if exist "Y:\installers-post\waxtrace\formtracepak\FORMTRACEPAK-V%WTVER%.iso" (
|
||||
xcopy /Y "Y:\installers-post\waxtrace\formtracepak\FORMTRACEPAK-V%WTVER%.iso" "W:\WaxTrace-Install\formtracepak\"
|
||||
echo Staged FormTracePak V%WTVER%.iso for %MACHINENUM%.
|
||||
) else (
|
||||
echo WARNING: No FORMTRACEPAK-V%WTVER%.iso on share for %MACHINENUM% - 09-Setup-WaxAndTrace will abort cleanly with the version-mismatch error.
|
||||
)
|
||||
) else (
|
||||
echo WARNING: bay-config did not resolve a FTPak version for %MACHINENUM%.
|
||||
)
|
||||
goto skip_waxtrace_stage
|
||||
:skip_waxtrace_missing
|
||||
echo WARNING: Y:\installers-post\waxtrace not found - WaxTrace PC cannot install FormTracePak at imaging time.
|
||||
:skip_waxtrace_stage
|
||||
:pctype_done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user