Antutu Benchmarkを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Antutu.AntutuBenchmark -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Antutu.AntutuBenchmark -e --silentwinget uninstall --id Antutu.AntutuBenchmark -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
AntutuBenchmark_x64_Setup.exe /Sインストール先を指定
AntutuBenchmark_x64_Setup.exe /S /D=C:\Apps\antutu-benchmark- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Antutu Benchmark
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-antutu-benchmark.ps1
$url = 'https://file.antutu.com/soft2/AntutuBenchmark_x64_Setup.exe?auth_key=b9b54fc59afce60eda0f5d5ec70663d0&expires=2147483647'
$sha256 = '400914DDA2B810B56DDE89E000AF952A3B441A691C142318ED177B2B49A247D4'
$file = Join-Path $env:TEMP 'AntutuBenchmark_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