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