免互動安裝Codex Account Switch、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id XiaoLan.CodexAccountSwitch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XiaoLan.CodexAccountSwitch -e --silentwinget uninstall --id XiaoLan.CodexAccountSwitch -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
ARM64 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
ARM64 · EXE(Inno Setup) · 所有使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
32位元 · EXE(Inno Setup) · 僅目前使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codex-account-switch"- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0ACAA3F5-9AE4-4E3E-9D0D-7B9A7A7D1C21}_is1
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe'
$sha256 = '79BED4B68E61F7DD25B78E58CFA1F2944623D92C11A8F70FCDC0C34E2700F50B'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe'
$sha256 = '79BED4B68E61F7DD25B78E58CFA1F2944623D92C11A8F70FCDC0C34E2700F50B'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x64_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe'
$sha256 = 'C2B83290C0F171F9E174DA2FBA9E8BB281453135168187A151F518C436841E43'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe'
$sha256 = 'C2B83290C0F171F9E174DA2FBA9E8BB281453135168187A151F518C436841E43'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_arm_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe'
$sha256 = '0D88599877DCD9235A4CB4BE5CF204FB2124348874068F4337727E05AAFBE843'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-codex-account-switch.ps1
$url = 'https://github.com/isxlan0/Codex_AccountSwitch/releases/download/v1.3.18/Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe'
$sha256 = '0D88599877DCD9235A4CB4BE5CF204FB2124348874068F4337727E05AAFBE843'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x86_v1.3.18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait