Repository navigation
Remote Harness MCP v0.7.2
Remote Harness MCP v0.7.2 — Windows Installer & In-Place Upgrade Fixes
Patch release fixing Windows visual installer (.exe) execution, drive selection, and clean in-place upgrades over an already-installed node.
Fixes
- Fixed PowerShell 5.1
-Fileparameter binding crash (-AddToPath:$true): Windows PowerShell 5.1 passed-AddToPath:$trueas the literal string"$true"to[bool]$AddToPath, abortinginstall.ps1before startup.install.ps1now accepts[object]$AddToPath = $trueand normalizes both native booleans and string forms ($true/$false/true/false/1/0). - Fixed mojibake in Russian installer error output:
install-gui.ps1(Read-TextFileTolerant) now falls back to the system OEM codepage (CP866 on Russian Windows) whencodePageis65001instead of re-decoding OEM stderr as UTF-8. - Fixed drive selection producing
D:\0.7.1:install-gui.ps1(Get-DefaultInstallDir) no longer defaults into the unpacked scratch directory...\RemoteHarnessMCP\setup\<version>, and switching drives ignores version-like folder names (^\d+\.\d+\.\d+) andsetup— selectingD:now defaults toD:\RemoteHarnessMCP. - In-place upgrade over existing installations: added
Get-ExistingInstallDirtoinstall-gui.ps1andinstall.ps1(checkingrhm.env,RemoteHarnessMCPService, and Startup VBS). When an existing installation is detected, the installer targets that exact directory and locks the location fields with a clear notice (loc_existing_hint). - Graceful stop before upgrade: added
Stop-ExistingNodeInstancesininstall.ps1beforeCopy-NodePayloadto stop running scheduled tasks (RemoteHarnessMCPService) and node/watchdog processes so file overwrites and port binding (SO_EXCLUSIVEADDRUSE) succeed cleanly before restarting the updated version.
Verification
install-gui.ps1 -SelfTest— all checks passed.pytest tests/test_installer_location.py tests/test_installer_gui.py tests/test_funnel_installers.py— 56 passed, 1 skipped (including real Windows PowerShell 5.1-File install.ps1 -DryRun -AddToPath:$true/-AddToPath:$falsetests).