Commit 4d51f37
committed
windows.ps1: handle winget Docker install failure (exit 4294967291)
winget install Docker.DockerDesktop fails with exit code 4294967291
when invoked as a non-admin user with UAC elevation. Two fixes:
- Add --scope machine flag which avoids the elevation issue in most cases
- Check $LASTEXITCODE after winget and show a clear error with guidance
(re-run as admin, or download manually) instead of falsely claiming
the install succeeded.1 parent 07fbdb1 commit 4d51f37
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
210 | 223 | | |
211 | | - | |
| 224 | + | |
212 | 225 | | |
213 | 226 | | |
214 | 227 | | |
| |||
0 commit comments