Commit 60a8347
committed
fix(cli): unblock downloaded binaries to prevent Access Denied error
Windows SmartScreen / Defender blocks execution of downloaded .exe
files that carry a Zone.Identifier (Mark of the Web) alternate data
stream. This causes both "Access denied" on vp.exe itself and
"Failed to download Node.js runtime: Access is denied. (os error 5)"
when vp.exe tries to perform file operations while MOTW-restricted.
Strip the marker with Unblock-File after copying binaries to BinDir.
Closes #901
Closes #1019
Closes #12261 parent 0bcee16 commit 60a8347
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
0 commit comments