Shopfloor images: add Wax/Trace + Keyence per-model variants

Wax/Trace (gea-shopfloor-waxtrace):
- captured/ holds master FormTracePak v6.0 state (Program Files reg dump
  gzipped, ARP entries) taken from a win11 VM where the CD-ROM-bound VB6
  wrapper was driven to completion. xcopy + reg-import replays the install
  on real bays without running the wrapper itself.
- 09-Setup-WaxAndTrace.ps1 rewrites the stub: installs prereqs via manifest
  (VC++ 2008/2017 x86+x64, Sentinel HASP), expands the captured zips into
  C:\Program Files (x86)\MitutoyoApp + C:\MitutoyoApp, imports the reg
  hive, then mounts the bay's per-machine cal ISO (matched by asset tag
  in machine-number.txt) and runs its Setup.exe.
- waxtrace-manifest.json lists the 5 prereqs with InstallShield-style
  silent flags verified on the win11 VM.
- sync-waxtrace.sh ships captured-binary/ + prereqs + cal ISOs from
  /home/camp/pxe-images/iso/mitutoyo-cal/ to
  /srv/samba/enrollment/installers-post/waxtrace/ on the PXE box.
- select-waxtrace-asset.ps1 arrow-key bay picker for WinPE (parses
  INDEX.csv from the cal share, offers "Other (new bay)" fallback).
- startnet.cmd: prompt_waxtrace_asset prompt, skip_waxtrace_stage xcopy
  block (mirrors :skip_cmm_stage), machine-number.txt write covers bay
  asset tag (WJRP*).

Keyence (gea-shopfloor-keyence) - now multi-model:
- vr3000/manifest.json + vr5000/manifest.json + vr6000/manifest.json
  (current single-model VR-6000 moved into vr6000/ subdir). Each ships
  the model's MSI silent-install + DetectionPath via ProductCode.
  Big payloads (Data1.cab, Data11.cab) gitignored, staged via
  sync-keyence.sh from /home/camp/pxe-images/iso/keyence/.
- 09-Setup-Keyence.ps1 dispatches by C:\Enrollment\keyence-model.txt
  (written by startnet.cmd in :keyence_submenu) and points
  InstallerRoot at C:\KeyenceInstall\<model>. DXSETUP probe widened
  to all three Program Files paths (VR-3000 G2, VR-5000, VR-6000).
- startnet.cmd: :keyence_submenu picks vr3000/vr5000/vr6000,
  :skip_keyence_stage xcopy block selectively stages chosen model bundle,
  pc-subtype.txt also written = drops directly into existing GE-Enforce
  PCSubType wiring (looks for gea-shopfloor-keyence-<model>\manifest.json
  on the tsgwp00525 share for ongoing enforcement, no dispatcher change
  needed).
- sync-keyence.sh mirrors sync-waxtrace.sh pattern.

Verified silent MSI install for VR-3000 G2 v2.5.0 and VR-5000 v3.3.1 on
the win11 VM 2026-05-18 with /qn /norestart ALLUSERS=1 REBOOT=ReallySuppress
TRANSFORMS=1033.mst. boot.wim on 172.16.9.1 wimupdate'd with the new
startnet.cmd.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
cproudlock
2026-05-18 16:34:20 -04:00
parent 3aabd47571
commit 37357eee43
25 changed files with 1061 additions and 33 deletions

View File

@@ -1,15 +1,18 @@
# 09-Setup-Keyence.ps1 - Keyence type setup (runs during shopfloor-setup phase).
#
# Performs the imaging-time install of Keyence VR-6000 Series Software MSI +
# KEYENCE VR Series USB driver from the staged bundle. Ongoing enforcement
# is handled by GE-Enforce (registered separately in Run-ShopfloorSetup.ps1)
# reading keyence/manifest.json from the tsgwp00525 share.
# Performs the imaging-time install of one of three Keyence model variants:
# VR-3000 G2 / VR-5000 / VR-6000
# based on C:\Enrollment\keyence-model.txt (vr3000 / vr5000 / vr6000), set
# during the WinPE menu. Per-model manifest + installers live at
# <model>/manifest.json + <model>/installers/. Ongoing enforcement is handled
# by GE-Enforce reading keyence/manifest.json from the tsgwp00525 share.
#
# Layout at $PSScriptRoot (xcopied by startnet.cmd only for PCTYPE=Keyence):
# keyence-manifest.json
# 09-Setup-Keyence.ps1 (this file)
# installers\VR-6000 Series Software.msi
# drivers\keyence_vr_series.inf (+ cat + amd64\{Wdf,WinUsb}CoInstaller*.dll)
# vr3000\manifest.json + installers\VR-3000 G2 Series Software.msi + Data*.cab
# vr5000\manifest.json + installers\VR-5000 Series Software.msi + Data1.cab
# vr6000\manifest.json + installers\VR-6000 Series Software.msi + Data1.cab
# + drivers\keyence_vr_series.inf (legacy - only VR-6000)
#
# Library lookup: the imaging-time install uses the common Install-FromManifest
# library at ..\common\lib\Install-FromManifest.ps1 (relative to $PSScriptRoot).
@@ -19,8 +22,26 @@
$ErrorActionPreference = 'Continue'
$manifestPath = Join-Path $PSScriptRoot 'keyence-manifest.json'
$libSource = Join-Path $PSScriptRoot '..\common\lib\Install-FromManifest.ps1'
$libSource = Join-Path $PSScriptRoot '..\common\lib\Install-FromManifest.ps1'
# Resolve which Keyence model variant to install. WinPE writes the choice
# (vr3000 / vr5000 / vr6000) into C:\Enrollment\keyence-model.txt during
# the imaging menu. If the file is missing, default to vr6000 since that
# was the original single-model setup before this refactor.
$modelFile = 'C:\Enrollment\keyence-model.txt'
if (Test-Path -LiteralPath $modelFile) {
$model = (Get-Content -LiteralPath $modelFile -First 1 -ErrorAction SilentlyContinue).Trim().ToLower()
}
if (-not $model) { $model = 'vr6000' }
# Manifest comes via shopfloor-setup tree xcopy (small file, git-tracked).
# Installer payload (MSI + Data*.cab) comes via installers-post stage at
# C:\KeyenceInstall\<model>\ - placed there by startnet.cmd's keyence-stage
# block. So manifest paths reference installers\... which resolve relative
# to InstallerRoot=C:\KeyenceInstall\<model>.
$modelRoot = Join-Path $PSScriptRoot $model
$manifestPath = Join-Path $modelRoot 'manifest.json'
$stagingRoot = "C:\KeyenceInstall\$model"
$logDir = 'C:\Logs\Keyence'
$installLog = Join-Path $logDir 'install.log'
@@ -80,8 +101,11 @@ foreach ($file in @('pc-type.txt','pc-subtype.txt','machine-number.txt')) {
# If either step fails, log + continue - the MSI is still expected to install
# successfully; the only fallout is the GUI prompt the operator would have
# had to click through anyway.
$driverInf = Join-Path $PSScriptRoot 'drivers\keyence_vr_series.inf'
$driverCat = Join-Path $PSScriptRoot 'drivers\KEYENCE_VR_SERIES.cat'
# Drivers come via the staging dir now. Only VR-6000 ships an external .inf;
# VR-3000 + VR-5000 embed drivers inside the MSI so the pre-stage step is a
# no-op for those models (no file found, log + continue).
$driverInf = Join-Path $stagingRoot 'drivers\keyence_vr_series.inf'
$driverCat = Join-Path $stagingRoot 'drivers\KEYENCE_VR_SERIES.cat'
if (Test-Path -LiteralPath $driverInf) {
Write-KeyenceLog "Pre-staging USB driver via pnputil (suppresses dpinst GUI inside MSI)"
@@ -124,8 +148,8 @@ if (-not (Test-Path $manifestPath)) {
} elseif (-not (Test-Path $libSource)) {
Write-KeyenceLog "Install-FromManifest.ps1 not found at $libSource" "ERROR"
} else {
Write-KeyenceLog "Running Install-FromManifest (InstallerRoot=$PSScriptRoot)"
& $libSource -ManifestPath $manifestPath -InstallerRoot $PSScriptRoot -LogFile $installLog
Write-KeyenceLog "Running Install-FromManifest (InstallerRoot=$stagingRoot)"
& $libSource -ManifestPath $manifestPath -InstallerRoot $stagingRoot -LogFile $installLog
$rc = $LASTEXITCODE
Write-KeyenceLog "Install-FromManifest returned $rc"
}
@@ -138,11 +162,15 @@ if (-not (Test-Path $manifestPath)) {
# the application is not installed correctly. Install from the following
# folder: C:\Program Files\Keyence\VR-6000\Common\DirectX End-User Runtimes\
# DXSETUP.exe". Run it silently here; /silent suppresses all UI + reboot.
$dxSetup = 'C:\Program Files\KEYENCE\VR-6000\Common\DirectX End-User Runtimes\DXSETUP.exe'
$dxSetupAlt = 'C:\Program Files (x86)\KEYENCE\VR-6000\Common\DirectX End-User Runtimes\DXSETUP.exe'
if (Test-Path -LiteralPath $dxSetup) { $dxPath = $dxSetup }
elseif (Test-Path -LiteralPath $dxSetupAlt) { $dxPath = $dxSetupAlt }
else { $dxPath = $null }
# Probe both VR-3000 G2, VR-5000, VR-6000 install paths under both Program Files
# roots. Whichever model's MSI installed will have its DXSETUP at one of these.
$dxCandidates = @()
foreach ($pf in @('C:\Program Files\KEYENCE','C:\Program Files (x86)\KEYENCE')) {
foreach ($prod in @('VR-3000 G2','VR-5000','VR-6000')) {
$dxCandidates += (Join-Path $pf "$prod\Common\DirectX End-User Runtimes\DXSETUP.exe")
}
}
$dxPath = $dxCandidates | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
if ($dxPath) {
Write-KeyenceLog "Running DirectX End-User Runtimes: $dxPath /silent"

View File

@@ -0,0 +1,17 @@
{
"Version": "1.0",
"_comment": "Keyence VR-3000 G2 imaging-time manifest. Consumed by 09-Setup-Keyence.ps1 when keyence-model.txt = vr3000. USB drivers are embedded in the MSI (newer InstallShield deploys them via custom action) - no separate .inf needed. The MSI references Data1.cab (2.0 GB) + Data11.cab (388 MB) in the same Installer\\ dir; those cabs are gitignored (see .gitignore). Stage them from /home/camp/pxe-images/iso/keyence/Keyence-VR-3000-G2-v2.5.0.iso (Installer/Data*.cab) into installers/ before sync-keyence.sh. Verified silent install via msiexec on Win11 2026-05-18 with /qn /norestart ALLUSERS=1 REBOOT=ReallySuppress TRANSFORMS=1033.mst (English transform).",
"Applications": [
{
"_comment": "VR-3000 G2 Series Software. v2.5.0 Sept 2017. ProductCode {9CC9A062-2A93-4D3B-AECA-F70C691A46F2}. The bundled InstallShield setup.exe wrapper is 227 MB and bundles its own VC++/DotNet prereqs; we skip it and call the MSI directly via msiexec since modern Win11 ships compatible runtimes.",
"Name": "VR-3000 G2 Series Software",
"Installer": "installers\\VR-3000 G2 Series Software.msi",
"Type": "MSI",
"InstallArgs": "/qn /norestart ALLUSERS=1 REBOOT=ReallySuppress TRANSFORMS=installers\\1033.mst",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{9CC9A062-2A93-4D3B-AECA-F70C691A46F2}",
"DetectionName": "DisplayVersion",
"DetectionValue": "2.5.0"
}
]
}

View File

@@ -0,0 +1,17 @@
{
"Version": "1.0",
"_comment": "Keyence VR-5000 imaging-time manifest. Consumed by 09-Setup-Keyence.ps1 when keyence-model.txt = vr5000. USB drivers embedded in MSI (newer InstallShield). MSI references Data1.cab (702 MB) in installers/ - gitignored, stage from /home/camp/pxe-images/iso/keyence/Keyence-VR-5000-v3.3.1.iso. Verified silent install via msiexec on Win11 2026-05-18.",
"Applications": [
{
"_comment": "VR-5000 Series Software v3.3.1 Nov 2018. ProductCode {AF7E8B93-DBEB-4DB1-91CB-4DA592D8E222}. Same bypass-bootstrapper pattern: call MSI directly skipping the InstallShield setup.exe (203 MB - prereq bundle we don't need).",
"Name": "VR-5000 Series Software",
"Installer": "installers\\VR-5000 Series Software.msi",
"Type": "MSI",
"InstallArgs": "/qn /norestart ALLUSERS=1 REBOOT=ReallySuppress TRANSFORMS=installers\\1033.mst",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{AF7E8B93-DBEB-4DB1-91CB-4DA592D8E222}",
"DetectionName": "DisplayVersion",
"DetectionValue": "3.3.1"
}
]
}

View File

@@ -1,22 +1,217 @@
# 09-Setup-WaxAndTrace.ps1 - Wax and Trace pc-type setup
# 09-Setup-WaxAndTrace.ps1 - Wax and Trace pc-type setup (Mitutoyo FormTracePak v6.0)
#
# Currently OpenText-only (same as common). Wax-and-Trace-specific software
# will be added here when the application catalog is finalized.
# Imaging-time install. Mitutoyo's CD-ROM-bound VB6 wrapper (Setup.exe +
# appSetup.exe) is unreliable on Win11 and requires interactive clicks
# through model + cal + HASP dialogs. We bypass it entirely: prereqs install
# via manifest, FormTracePak itself is xcopy + reg-import from a master capture.
#
# Master capture was taken 2026-05-18 on a Win11 VM with both CV-3000/4000
# series + SV-C3000/4000 series installed via Mount-DiskImage approach (see
# project-waxtrace-image.md). Covers all WJ wax/trace bays since both series
# end up sharing the same Program Files dir + reg.
#
# Layout at C:\WaxTrace-Install\ (xcopied by startnet.cmd):
# waxtrace-manifest.json
# 09-Setup-WaxAndTrace.ps1 (this file)
# prereqs\vcredist_x86.exe (VC++ 2008 x86)
# prereqs\vcredist_x64.exe (VC++ 2008 x64)
# prereqs\vc_redist.x86.exe (VC++ 2017 x86)
# prereqs\vc_redist.x64.exe (VC++ 2017 x64)
# prereqs\HASPUserSetup.exe (Sentinel Runtime / HASP dongle driver)
# captured\pf-x86-MitutoyoApp.zip (~108 MB compressed -> 675 MB)
# captured\c-MitutoyoApp.zip (data dir skeleton, mostly empty)
# captured\reg\hklm-wow-mitutoyo.reg.gz (gzipped, ~218 KB -> 5.4 MB)
# captured\arp-entries.json (informational - what to expect)
# calibrations\CAL-WJRP<asset>_serial-<sn>_probe-<probe>.iso (per-machine)
#
# Per-machine calibration is applied separately (mount cal ISO + run its
# Setup.exe), keyed by C:\Enrollment\machine-number.txt.
#
# Log: C:\Logs\WaxTrace\09-Setup-WaxAndTrace.log
# C:\Logs\WaxTrace\install.log (written by Install-FromManifest)
$lib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Set-OpenTextAutoStart.ps1'
$ErrorActionPreference = 'Continue'
Write-Host '=== Wax and Trace Setup ==='
# Mirror the CMM pattern (09-Setup-CMM.ps1): the script itself lives in the
# shopfloor-setup tree (xcopied during WinPE), but the bulky bootstrap bundle
# (prereqs + captured master + cal ISOs) lives at C:\WaxTrace-Install\, put
# there by startnet.cmd from Y:\installers-post\waxtrace\ at imaging time.
$stagingRoot = 'C:\WaxTrace-Install'
$manifestPath = Join-Path $stagingRoot 'waxtrace-manifest.json'
$libSource = Join-Path $PSScriptRoot '..\common\lib\Install-FromManifest.ps1'
$logDir = 'C:\Logs\WaxTrace'
$installLog = Join-Path $logDir 'install.log'
$transcriptLog = Join-Path $logDir '09-Setup-WaxAndTrace.log'
if (-not (Test-Path $logDir)) {
New-Item -Path $logDir -ItemType Directory -Force | Out-Null
}
try { Start-Transcript -Path $transcriptLog -Append -Force | Out-Null } catch {}
function Write-WTLog {
param([string]$Message, [string]$Level = 'INFO')
$stamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
Write-Host "[$stamp] [$Level] $Message"
}
Write-WTLog "================================================================"
Write-WTLog "=== WaxTrace Setup (imaging-time) session start (PID $PID) ==="
Write-WTLog "Running as: $([System.Security.Principal.WindowsIdentity]::GetCurrent().Name)"
Write-WTLog "Script root: $PSScriptRoot"
Write-WTLog "================================================================"
# Status push - best-effort.
$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
foreach ($file in @('pc-type.txt','machine-number.txt')) {
$path = "C:\Enrollment\$file"
if (Test-Path -LiteralPath $path) {
$content = (Get-Content -LiteralPath $path -First 1 -ErrorAction SilentlyContinue).Trim()
Write-WTLog " $file = $content"
} else {
Write-WTLog " $file = (not present)"
}
}
# ============================================================================
# Step 1: Prereqs via manifest (VC++ 2008 + 2017, HASP/Sentinel)
# ============================================================================
if (-not (Test-Path $manifestPath)) {
Write-WTLog "waxtrace-manifest.json not found at $manifestPath" 'ERROR'
} elseif (-not (Test-Path $libSource)) {
Write-WTLog "Install-FromManifest.ps1 not found at $libSource" 'ERROR'
} else {
Write-Warning "Set-OpenTextAutoStart.ps1 not found at $lib - OpenText auto-start NOT configured"
Write-WTLog "Running Install-FromManifest (InstallerRoot=$PSScriptRoot)"
& $libSource -ManifestPath $manifestPath -InstallerRoot $stagingRoot -LogFile $installLog
$rc = $LASTEXITCODE
Write-WTLog "Install-FromManifest returned $rc"
}
# TODO: Wax and Trace-specific apps go here.
# ============================================================================
# Step 2: Replay FormTracePak install from master capture
# ============================================================================
# Detection: skip if Formtracepak already present (re-run safe).
$ftpakExe = 'C:\Program Files (x86)\MitutoyoApp\Formtracepak\Formtracepak.exe'
if (Test-Path -LiteralPath $ftpakExe) {
Write-WTLog "Formtracepak.exe already present - skipping replay"
} else {
$pfZip = Join-Path $stagingRoot 'captured\pf-x86-MitutoyoApp.zip'
$maZip = Join-Path $stagingRoot 'captured\c-MitutoyoApp.zip'
$regGz = Join-Path $stagingRoot 'captured\reg\hklm-wow-mitutoyo.reg.gz'
if (-not (Test-Path $pfZip)) {
Write-WTLog "Master capture pf-x86-MitutoyoApp.zip not found at $pfZip" 'ERROR'
} else {
$pfDest = 'C:\Program Files (x86)\MitutoyoApp'
Write-WTLog "Extracting $pfZip -> $pfDest"
try {
if (-not (Test-Path $pfDest)) { New-Item -Path $pfDest -ItemType Directory -Force | Out-Null }
Expand-Archive -Path $pfZip -DestinationPath $pfDest -Force
$count = (Get-ChildItem $pfDest -Recurse -File -ErrorAction SilentlyContinue).Count
Write-WTLog " extracted $count files"
} catch {
Write-WTLog " Expand-Archive failed: $_" 'ERROR'
}
}
if (Test-Path $maZip) {
$maDest = 'C:\MitutoyoApp'
Write-WTLog "Extracting $maZip -> $maDest"
try {
if (-not (Test-Path $maDest)) { New-Item -Path $maDest -ItemType Directory -Force | Out-Null }
Expand-Archive -Path $maZip -DestinationPath $maDest -Force
} catch {
Write-WTLog " Expand-Archive failed: $_" 'WARN'
}
}
if (Test-Path $regGz) {
$regOut = Join-Path $env:TEMP 'hklm-wow-mitutoyo.reg'
Write-WTLog "Decompressing $regGz -> $regOut"
try {
$inGz = [IO.File]::OpenRead($regGz)
$gz = New-Object IO.Compression.GZipStream($inGz, [IO.Compression.CompressionMode]::Decompress)
$out = [IO.File]::Create($regOut)
$gz.CopyTo($out)
$out.Close(); $gz.Close(); $inGz.Close()
Write-WTLog "Importing reg file via reg.exe /s"
& reg.exe import $regOut 2>&1 | ForEach-Object { Write-WTLog " reg: $_" }
Write-WTLog " reg import exit $LASTEXITCODE"
Remove-Item $regOut -Force -ErrorAction SilentlyContinue
} catch {
Write-WTLog " reg import failed: $_" 'ERROR'
}
}
}
# ============================================================================
# Step 3: Per-machine calibration ISO (mount + apply via cal Setup.exe)
# ============================================================================
# Cal ISOs are keyed by asset_tag. Read machine-number.txt to pick the right
# ISO. Each cal ISO is ~1.7MB and contains a tiny Mitutoyo wrapper Setup.exe
# plus data/*.txt compensation tables for the bay's specific probe + serial.
$mnPath = 'C:\Enrollment\machine-number.txt'
$asset = $null
if (Test-Path -LiteralPath $mnPath) {
$asset = (Get-Content -LiteralPath $mnPath -First 1 -ErrorAction SilentlyContinue).Trim()
}
if (-not $asset) {
Write-WTLog "machine-number.txt missing or empty - skipping calibration apply" 'WARN'
} else {
$calDir = Join-Path $stagingRoot 'calibrations'
$candidate = Get-ChildItem $calDir -Filter "CAL-${asset}_*.iso" -ErrorAction SilentlyContinue | Select-Object -First 1
if (-not $candidate) {
Write-WTLog "No cal ISO matched CAL-${asset}_*.iso in $calDir - skipping" 'WARN'
} else {
Write-WTLog "Mounting cal ISO: $($candidate.FullName)"
try {
$img = Mount-DiskImage -ImagePath $candidate.FullName -PassThru -ErrorAction Stop
Start-Sleep -Seconds 2
$calDrive = ($img | Get-Volume).DriveLetter
Write-WTLog " mounted at ${calDrive}:"
$calSetup = "${calDrive}:\Setup.exe"
if (Test-Path -LiteralPath $calSetup) {
Write-WTLog " running cal Setup.exe (may prompt - VB6 wrapper, same vintage as main installer)"
# Cal ISO Setup.exe is tiny (135KB) - if it prompts, user has to click through.
# Acceptable today; future: dark-deploy the data/*.txt files directly into
# the FormTracePak data dir + skip Setup.exe.
$p = Start-Process -FilePath $calSetup -WorkingDirectory "${calDrive}:\" -Wait -PassThru
Write-WTLog " cal Setup.exe exit $($p.ExitCode)"
} else {
Write-WTLog " cal Setup.exe not found on ISO at $calSetup" 'WARN'
}
Dismount-DiskImage -ImagePath $candidate.FullName -ErrorAction SilentlyContinue | Out-Null
Write-WTLog " cal ISO dismounted"
} catch {
Write-WTLog " Mount-DiskImage failed: $_" 'ERROR'
}
}
}
# ============================================================================
# Step 4: OpenText auto-start at login (HostExplorer "WJ Shopfloor" session)
# ============================================================================
$autoStartLib = Join-Path $PSScriptRoot '..\Shopfloor\lib\Set-OpenTextAutoStart.ps1'
if (Test-Path -LiteralPath $autoStartLib) {
Write-WTLog "Calling $autoStartLib"
& $autoStartLib
} else {
Write-WTLog "Set-OpenTextAutoStart.ps1 not found at $autoStartLib - OpenText auto-start NOT configured" 'WARN'
}
if (Get-Command Send-PxeStatus -ErrorAction SilentlyContinue) {
Send-PxeStatus -Stage '09-Setup-WaxAndTrace: complete' -StageIndex 4 -StageTotal 8
$finalStatus = if ($rc -eq 0) { 'in_progress' } else { 'failed' }
$finalErr = if ($rc -ne 0) { "Install-FromManifest exit $rc" } else { '' }
Send-PxeStatus -Stage '09-Setup-WaxAndTrace: complete' -StageIndex 4 -StageTotal 8 -Status $finalStatus -Error_ $finalErr
}
Write-Host '=== Wax and Trace Setup Complete ==='
Write-WTLog "================================================================"
Write-WTLog "=== WaxTrace Setup session end ==="
Write-WTLog "================================================================"
try { Stop-Transcript | Out-Null } catch {}

View File

@@ -0,0 +1,98 @@
[
{
"DisplayName": "Formtracepak",
"DisplayVersion": null,
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Formtracepak"
},
{
"DisplayName": "Microsoft Visual C++ 2017 x86 Additional Runtime - 14.15.26706",
"DisplayVersion": "14.15.26706",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{2757496A-3E74-320A-B007-36120A9F126D}"
},
{
"DisplayName": "Microsoft Visual C++ 2017 x86 Minimum Runtime - 14.15.26706",
"DisplayVersion": "14.15.26706",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{39E15475-23F2-345D-8977-B5DC47A94E26}"
},
{
"DisplayName": "Microsoft Visual C++ 2017 Redistributable (x86) - 14.15.26706",
"DisplayVersion": "14.15.26706.0",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{7e9fae12-5bbf-47fb-b944-09c49e75c061}"
},
{
"DisplayName": "Microsoft Visual C++ 2017 Redistributable (x64) - 14.15.26706",
"DisplayVersion": "14.15.26706.0",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{95ac1cfa-f4fb-4d1b-8912-7f9d5fbb140d}"
},
{
"DisplayName": "Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17",
"DisplayVersion": "9.0.30729",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{9A25302D-30C0-39D9-BD6F-21E6EC160475}"
},
{
"DisplayName": "Sentinel Runtime",
"DisplayVersion": "7.92.28470.60000",
"Publisher": "Gemalto",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{C8903CCB-67B6-4801-AA7B-B4E54E2B8406}"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (01/26/2014 1.0.0.0)",
"DisplayVersion": "01/26/2014 1.0.0.0",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\0C2BF85342810B30769EBCA6B95E4E4BE156E077"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (03/26/2012 6.1.7600.16385)",
"DisplayVersion": "03/26/2012 6.1.7600.16385",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\0D65E8F8146B3CCE8C4649A829EDCAFD02F3E6CF"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (01/01/2016 1.0.0.0)",
"DisplayVersion": "01/01/2016 1.0.0.0",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\17940B80DB5791E80624748EB1CFB7CF28FA0BAE"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (01/26/2014 1.0.0.0)",
"DisplayVersion": "01/26/2014 1.0.0.0",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\2B01E4170B345A54C5865F65CEA1BAFA50BB9C2C"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (01/26/2014 1.0.0.0)",
"DisplayVersion": "01/26/2014 1.0.0.0",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\CB4E6EDB5EA0AB4F2E28F4C0CA4E0B09C7AE1F54"
},
{
"DisplayName": "Windows Driver Package - Mitutoyo Corporation (WinUSB) USB (01/26/2014 1.0.0.0)",
"DisplayVersion": "01/26/2014 1.0.0.0",
"Publisher": "Mitutoyo Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\F3159CAB242459F45CAF22F84A47213A0101C6CE"
},
{
"DisplayName": "Microsoft Visual C++ 2008 Redistributable - x64 9.0.21022",
"DisplayVersion": "9.0.21022",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{350AA351-21FA-3270-8B7A-835434E766AD}"
},
{
"DisplayName": "Microsoft Visual C++ 2017 x64 Minimum Runtime - 14.15.26706",
"DisplayVersion": "14.15.26706",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{C77195A4-CEB8-38EE-BDD6-C46CB459EF6E}"
},
{
"DisplayName": "Microsoft Visual C++ 2017 x64 Additional Runtime - 14.15.26706",
"DisplayVersion": "14.15.26706",
"Publisher": "Microsoft Corporation",
"PSPath": "Microsoft.PowerShell.Core\\Registry::HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{F106B700-BFF8-3065-B305-14D36AD40539}"
}
]

View File

@@ -0,0 +1,9 @@
{
"Label": "combined",
"CapturedAt": "2026-05-18T05:20:48",
"PfX86Mb": 107.9,
"DataMb": 0,
"ArpCount": 16,
"SysFilesAdded": 0,
"HklmWowMitutoyoExists": true
}

View File

@@ -0,0 +1,237 @@
Microsoft PnP Utility
Published Name: oem2.inf
Original Name: balloon.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem3.inf
Original Name: fwcfg.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem5.inf
Original Name: pvpanic.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem7.inf
Original Name: viofs.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem9.inf
Original Name: vioinput.inf
Provider Name: Red Hat, Inc.
Class Name: HIDClass
Class GUID: {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem11.inf
Original Name: viorng.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem12.inf
Original Name: vioscsi.inf
Provider Name: Red Hat, Inc.
Class Name: SCSIAdapter
Class GUID: {4d36e97b-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem13.inf
Original Name: vioser.inf
Provider Name: Red Hat, Inc.
Class Name: System
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem14.inf
Original Name: viostor.inf
Provider Name: Red Hat, Inc.
Class Name: SCSIAdapter
Class GUID: {4d36e97b-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem8.inf
Original Name: cnc_comm.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {1c01d8a8-e874-42e2-8da3-25f5f61527d1}
Driver Version: 01/26/2014 1.0.0.0
Signer Name: MITUTOYO CORPORATION
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem17.inf
Original Name: cps-476.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {a2e18d78-b77a-45af-bca9-2d7d3f27cf74}
Driver Version: 03/26/2012 6.1.7600.16385
Signer Name: Mitutoyo Corporation
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem18.inf
Original Name: cs3200_comm.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {1c01d8a8-e874-42e2-8da3-25f5f61527d1}
Driver Version: 01/01/2016 1.0.0.0
Signer Name: MITUTOYO CORPORATION
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem19.inf
Original Name: cv_1000_or_cv_2000.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {1c01d8a8-e874-42e2-8da3-25f5f61527d1}
Driver Version: 01/26/2014 1.0.0.0
Signer Name: MITUTOYO CORPORATION
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem20.inf
Original Name: cv_2100.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {1c01d8a8-e874-42e2-8da3-25f5f61527d1}
Driver Version: 01/26/2014 1.0.0.0
Signer Name: MITUTOYO CORPORATION
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem16.inf
Original Name: keyence_vr_series.inf
Provider Name: KEYENCE
Class Name: KeyenceUSB
Class GUID: {ee304f37-f588-45fc-91fe-b76873981ad1}
Driver Version: 03/26/2020 1.0.0.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Declarative
Attested
WHCP Version: Unknown
Published Name: oem4.inf
Original Name: netkvm.inf
Provider Name: Red Hat, Inc.
Class Name: Net
Class GUID: {4d36e972-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem0.inf
Original Name: prnms009.inf
Provider Name: Microsoft
Class Name: Printer
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Class Version: 4.0
Driver Version: 06/21/2006 10.0.26100.4484
Signer Name: Microsoft Windows
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem6.inf
Original Name: qemupciserial.inf
Provider Name: QEMU
Class Name: MultiFunction
Class GUID: {4d36e971-e325-11ce-bfc1-08002be10318}
Driver Version: 05/21/2022 100.90.104.22100
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Declarative
Attested
WHCP Version: Unknown
Published Name: oem15.inf
Original Name: qxldod.inf
Provider Name: Red Hat, Inc.
Class Name: Display
Class GUID: {4d36e968-e325-11ce-bfc1-08002be10318}
Driver Version: 11/20/2020 10.0.0.21000
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
WHCP Version: Unknown
Published Name: oem21.inf
Original Name: sj_comm.inf
Provider Name: Mitutoyo Corporation
Class Name: USB
Class GUID: {1c01d8a8-e874-42e2-8da3-25f5f61527d1}
Driver Version: 01/26/2014 1.0.0.0
Signer Name: MITUTOYO CORPORATION
Attributes: Legacy
WHCP Version: Unknown
Published Name: oem10.inf
Original Name: viomem.inf
Provider Name: Red Hat, Inc.
Class Name: MTD
Class GUID: {4d36e970-e325-11ce-bfc1-08002be10318}
Driver Version: 07/09/2025 100.101.104.28500
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
Attested
WHCP Version: Unknown
Published Name: oem1.inf
Original Name: voiceclarityep_audio_component.inf
Provider Name: Microsoft Corporation
Class Name: AudioProcessingObject
Class GUID: {5989fce8-9cd0-467d-8a6a-5419e31529d4}
Driver Version: 03/31/2026 10.0.26100.6710
Signer Name: Microsoft Windows Hardware Compatibility Publisher
Attributes: Universal
WHCP Version: Unknown

View File

@@ -0,0 +1,61 @@
{
"Version": "2.0",
"_comment": "Wax/Trace (Mitutoyo FormTracePak v6.0) imaging-time prereq manifest. Consumed by 09-Setup-WaxAndTrace.ps1 reading from C:\\WaxTrace-Install\\. Covers BOTH CV-3000/4000 and SV-C3000/4000 series bays since the master install merges them. Does NOT run Mitutoyo's appSetup.exe / Setup.exe wrappers - those are CD-ROM-bound + dongle-gated + unreliable on Win11. The actual FormTracePak install replay (Program Files xcopy + HKLM reg import) is handled by 09-Setup-WaxAndTrace.ps1 directly, after this manifest installs the prereqs.",
"Applications": [
{
"_comment": "Visual C++ 2008 x86 redist. Mitutoyo's vcredist_x86.exe (2008 SP1 vintage) at Lang\\English\\ on the FormTracePak ISO. /q is the 2005-era silent flag still supported by 2008 redist EXEs.",
"Name": "Microsoft Visual C++ 2008 Redistributable - x86",
"Installer": "prereqs\\vcredist_x86.exe",
"Type": "EXE",
"InstallArgs": "/q",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{9BE518E6-ECC6-35A9-88E4-87755C07200F}",
"DetectionName": "DisplayVersion",
"DetectionValue": "9.0.30729"
},
{
"_comment": "Visual C++ 2008 x64 redist.",
"Name": "Microsoft Visual C++ 2008 Redistributable - x64",
"Installer": "prereqs\\vcredist_x64.exe",
"Type": "EXE",
"InstallArgs": "/q",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{8220EEFE-38CD-377E-8595-13398D740ACE}",
"DetectionName": "DisplayVersion",
"DetectionValue": "9.0.21022"
},
{
"_comment": "Visual C++ 2017 x86 redist (14.15.26706 = VS2017 Update 7 era). Mitutoyo's vc_redist.x86.exe at Lang\\English\\ on the FormTracePak ISO. Uses VS2015+ universal redist installer flag set.",
"Name": "Microsoft Visual C++ 2017 Redistributable (x86)",
"Installer": "prereqs\\vc_redist.x86.exe",
"Type": "EXE",
"InstallArgs": "/quiet /norestart",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x86",
"DetectionName": "Version",
"DetectionValue": "v14.15.26706"
},
{
"_comment": "Visual C++ 2017 x64 redist.",
"Name": "Microsoft Visual C++ 2017 Redistributable (x64)",
"Installer": "prereqs\\vc_redist.x64.exe",
"Type": "EXE",
"InstallArgs": "/quiet /norestart",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\x64",
"DetectionName": "Version",
"DetectionValue": "v14.15.26706"
},
{
"_comment": "Sentinel Runtime / HASP USB dongle driver from Gemalto (now Thales). Vintage 2019 InstallShield wrapper, classic InstallShield silent install via /s + nested /v args. FormTracePak licensing is dongle-bound; the runtime + drivers must be present before Formtracepak.exe will run. Tech inserts physical HASP USB dongle on the bay post-imaging to license.",
"Name": "Sentinel Runtime (HASP)",
"Installer": "prereqs\\HASPUserSetup.exe",
"Type": "EXE",
"InstallArgs": "/s /v/qn /v/norestart",
"DetectionMethod": "Registry",
"DetectionPath": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{C8903CCB-67B6-4801-AA7B-B4E54E2B8406}",
"DetectionName": "DisplayVersion",
"DetectionValue": "7.92.28470.60000"
}
]
}