open-design/tools
Nicholas-Xiong ed5d569c57
fix(pack): add PowerShell 7 fallback for Windows installer process detection (#2799)
Fixes #2257

The Windows installer hardcoded calls to powershell.exe for running
instance detection, which fails on systems that only have PowerShell 7
(pwsh.exe) installed. This caused a false positive 'still running'
error during first-time installation.

Changes:
- DetectRunningInstances: try pwsh.exe first, fall back to powershell.exe
- CloseRunningInstances: same fallback logic with detailed logging
- Maintains backward compatibility with Windows PowerShell 5.1
- Provides clear error messages when neither PowerShell is available

The installer now works correctly on:
- Systems with only PowerShell 5.1 (powershell.exe)
- Systems with only PowerShell 7 (pwsh.exe)
- Systems with both installed
- Logs detailed errors when neither is available

Signed-off-by: xxiaoxiong <2482929840@qq.com>
2026-05-23 15:10:03 +00:00
..
dev Merge origin/main into release/v0.8.0 2026-05-23 12:17:18 +08:00
pack fix(pack): add PowerShell 7 fallback for Windows installer process detection (#2799) 2026-05-23 15:10:03 +00:00
pr Merge origin/main into release/v0.8.0 2026-05-21 13:17:52 +08:00
serve Harden packaged updater downloads and install handoff (#2677) 2026-05-22 15:44:28 +08:00
AGENTS.md [codex] Add packaged desktop auto-update (#1375) 2026-05-19 11:20:05 +08:00