Webstarted Screen Captureを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Webstarted.ScreenCapture -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Webstarted.ScreenCapture -e --silentwinget uninstall --id Webstarted.ScreenCapture -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
WebstartedScreenCapture-windows-setup.exe /Sインストール先を指定
WebstartedScreenCapture-windows-setup.exe /S /D=C:\Apps\webstarted-screen-capture- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Webstarted Screen Capture
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-webstarted-screen-capture.ps1
$url = 'https://github.com/webstarted/webstarted-screen-capture-builds/releases/download/v1.11.8/WebstartedScreenCapture-windows-setup.exe'
$sha256 = 'BC4EAAA22E547BA1523BA1D65F5BA927D118072F4BEFE76465F130F88364E6FA'
$file = Join-Path $env:TEMP 'WebstartedScreenCapture-windows-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