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
+2
View File
@@ -182,6 +182,8 @@ winget install `
The Store product ID `9PLM9XGG6VKS` is the ChatGPT Windows app managed here.
ChatGPT Classic (`9NT1R1C2HH7J`) is intentionally not installed.
WinGet's `APPINSTALLER_CLI_ERROR_UPDATE_NOT_APPLICABLE` result is treated as
success because it means the installed ChatGPT version is already current.
7-Zip is intentionally installed with its normal Windows installer through
WinGet rather than as a portable Scoop package, because the normal installer
+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)."
}