You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(windows): improve install.ps1 errors for missing VC++ runtime (#1962)
## Summary
On clean Windows machines without the MSVC runtime, `vp.exe` fails to
start during `irm https://vite.plus/ps1 | iex` with exit code
`0xC0000135` (STATUS_DLL_NOT_FOUND). The installer previously reported a
generic "Failed to install dependencies" with an empty `install.log`,
and `exit 1` closed the entire PowerShell window when run via `iex`.
This PR:
- Detects `0xC0000135` after `vp.exe install` fails and prints VC++
2015–2022 Redistributable install guidance (x64/arm64)
- Replaces bare `exit 1` with a non-CI halt path so interactive `irm |
iex` installs keep the shell open without duplicating the error message
All `Write-Error-Exit` paths now keep the interactive shell open when
not running under `CI=true`.
## Context
Similar report elsewhere: kirodotdev/Kiro#9752
## Test plan
- [x] Clean Windows without VC++: single clear error, shell stays open
(no duplicate message, no window close)
- [ ] Windows with VC++ installed: install completes normally
- [ ] CI path (`CI=true`): still exits with non-zero code
0 commit comments