windows codex update error

This commit is contained in:
2026-07-29 04:57:38 +09:00
parent c02d6936fa
commit 04e4bdaeff
2 changed files with 7 additions and 2 deletions
+5 -2
View File
@@ -8,6 +8,9 @@ winget install `
--silent `
--disable-interactivity
if ($LASTEXITCODE -ne 0) {
throw "Failed to install or update ChatGPT."
$exitCode = $LASTEXITCODE
$updateNotApplicable = -1978335189 # 0x8A15002B
if ($exitCode -notin @(0, $updateNotApplicable)) {
throw "Failed to install or update ChatGPT (WinGet exit code $exitCode)."
}