Commit 791b25d
committed
fix(installer): prevent destructive PATH overwrite on registry read error
Replace unwrap_or_default() with explicit error matching: only treat
ERROR_FILE_NOT_FOUND as empty PATH (fresh user with no custom PATH).
Any other error (corrupt data, wrong type, permission issue) is now
propagated, preventing the installer from silently replacing the
user's entire PATH with just the vp bin directory.1 parent bfaa80f commit 791b25d
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
0 commit comments