v2rayAを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id v2rayA.v2rayA -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id v2rayA.v2rayA -e --silentwinget uninstall --id v2rayA.v2rayA -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
installer_windows_inno_x64_2.5.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
installer_windows_inno_x64_2.5.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\v2raya"ARM64 · EXE(Inno Setup)
サイレントインストール
installer_windows_inno_arm64_2.5.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
installer_windows_inno_arm64_2.5.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\v2raya"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-v2raya.ps1
$url = 'https://github.com/v2rayA/v2rayA/releases/download/v2.5.13/installer_windows_inno_x64_2.5.13.exe'
$sha256 = '58A459AB59FD0BB8A391EA657D59BFF27AC208FC83DD9B1D22677E193FA3F81B'
$file = Join-Path $env:TEMP 'installer_windows_inno_x64_2.5.13.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-v2raya.ps1
$url = 'https://github.com/v2rayA/v2rayA/releases/download/v2.5.13/installer_windows_inno_arm64_2.5.13.exe'
$sha256 = '1A62798A47FEB94EFD7D6F952A2AE86B91BD0A973DCA04EFB116D15418EB0A8F'
$file = Join-Path $env:TEMP 'installer_windows_inno_arm64_2.5.13.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