VideOCRを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id timminator.VideOCR.CPU -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id timminator.VideOCR.CPU -e --silentwinget uninstall --id timminator.VideOCR.CPU -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
VideOCR-CPU-v1.6.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
VideOCR-CPU-v1.6.0-setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\videocr"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A8B0CA74-8EC9-4D6F-AB00-51C9BF6808B9}_is1
- インストール先フォルダー
- %ProgramFiles%\VideOCR
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-videocr.ps1
$url = 'https://github.com/timminator/VideOCR/releases/download/v1.6.0/VideOCR-CPU-v1.6.0-setup-x64.exe'
$sha256 = 'D9C09CBA40C2D084A1B7C4E3EE8F1044FBDAEE2D90AF78F184061D93FFC623E5'
$file = Join-Path $env:TEMP 'VideOCR-CPU-v1.6.0-setup-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