Codex Account Switchを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_x64_v1.3.23.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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_x64_v1.3.23.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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_arm_v1.3.23.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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_arm_v1.3.23.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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_x86_v1.3.23.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.23.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Codex_AccountSwitch_Setup_windows_x86_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_x64_v1.3.23.exe'
$sha256 = '365A294D055F9AB262036F7FD88D57D3503388D24708405EF539DF31AE0AAF28'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x64_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_x64_v1.3.23.exe'
$sha256 = '365A294D055F9AB262036F7FD88D57D3503388D24708405EF539DF31AE0AAF28'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x64_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_arm_v1.3.23.exe'
$sha256 = '4E057DBB260C653BEA5A4EE71B880B47C5B6B2940A2A0C023F49E76A1EDACEEF'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_arm_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_arm_v1.3.23.exe'
$sha256 = '4E057DBB260C653BEA5A4EE71B880B47C5B6B2940A2A0C023F49E76A1EDACEEF'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_arm_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_x86_v1.3.23.exe'
$sha256 = 'EECE73F5BE9B8BD0598D977E3A6B9D61DD3F1F61A532ACB1D05CD7BA6D8A892A'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x86_v1.3.23.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.23/Codex_AccountSwitch_Setup_windows_x86_v1.3.23.exe'
$sha256 = 'EECE73F5BE9B8BD0598D977E3A6B9D61DD3F1F61A532ACB1D05CD7BA6D8A892A'
$file = Join-Path $env:TEMP 'Codex_AccountSwitch_Setup_windows_x86_v1.3.23.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