Virtual Radar Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AndrewWhewell.VirtualRadarServer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AndrewWhewell.VirtualRadarServer -e --silentwinget uninstall --id AndrewWhewell.VirtualRadarServer -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
VirtualRadarSetup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
VirtualRadarSetup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\virtual-radar-server"32ビット · EXE(Inno Setup)
サイレントインストール
VirtualRadarSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
VirtualRadarSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\virtual-radar-server"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-virtual-radar-server.ps1
$url = 'https://www.virtualradarserver.co.uk/Files/VirtualRadarSetup-x64.exe'
$sha256 = '27A911B62C9D7704777AE780321869BE799C79F801F59CFA623E07E0C2215D0D'
$file = Join-Path $env:TEMP 'VirtualRadarSetup-x64.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-virtual-radar-server.ps1
$url = 'https://www.virtualradarserver.co.uk/Files/VirtualRadarSetup.exe'
$sha256 = '02CB721766B8D2ADEBEB773A168FBAC12619EC275F4C696BF80CB1AFC273E071'
$file = Join-Path $env:TEMP 'VirtualRadarSetup.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