codegを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id XinTaoFei.Codeg -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XinTaoFei.Codeg -e --silentwinget uninstall --id XinTaoFei.Codeg -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
codeg_0.40.0_x64-setup.exe /Sインストール先を指定
codeg_0.40.0_x64-setup.exe /S /D=C:\Apps\codeg- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
ARM64 · EXE(NSIS) · 現在のユーザー
サイレントインストール
codeg_0.40.0_arm64-setup.exe /Sインストール先を指定
codeg_0.40.0_arm64-setup.exe /S /D=C:\Apps\codeg- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-codeg.ps1
$url = 'https://github.com/spacering-net/codeg/releases/download/v0.40.0/codeg_0.40.0_x64-setup.exe'
$sha256 = '2172C3E4F9A9795DF6DAEEE526CA38A255235F9255F009B8C486DA07CEC8332F'
$file = Join-Path $env:TEMP 'codeg_0.40.0_x64-setup.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 '/S' -Wait install-codeg.ps1
$url = 'https://github.com/spacering-net/codeg/releases/download/v0.40.0/codeg_0.40.0_arm64-setup.exe'
$sha256 = '5E8601407337369CA6CBD3F645BE584233F5A53EC48AC14CA111319AEB858971'
$file = Join-Path $env:TEMP 'codeg_0.40.0_arm64-setup.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 '/S' -Wait