mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
windows codex update error
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user