Screenpressoを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Learnpulse.Screenpresso -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Learnpulse.Screenpresso -e --silentwinget uninstall --id Learnpulse.Screenpresso -e --silentインストーラー別
64ビット · EXE · 現在のユーザー
サイレントインストール
Screenpresso.exe deploy --install --quiet- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Screenpresso
64ビット · EXE · すべてのユーザー
サイレントインストール
Screenpresso.exe deploy --install --quiet- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Screenpresso
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i ScreenpressoSetup.msi /qn /norestartログを出力
msiexec /i ScreenpressoSetup.msi /qn /norestart /l*v "%TEMP%\screenpresso-install.log"アンインストール
msiexec /x {CA80A517-2DA3-4ECA-B07D-B546BAFDD217} /qn /norestart- MSIプロダクトコード
- {ca80a517-2da3-4eca-b07d-b546bafdd217}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ca80a517-2da3-4eca-b07d-b546bafdd217}
- UpgradeCode
- {35D6B64D-DD12-4513-B273-1D630B56E451}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-screenpresso.ps1
$url = 'https://cdn.screenpresso.com/binaries/releases/v2-4-03-000/dotnet47/Screenpresso.exe'
$sha256 = 'D567DC335CEB77680E773484EE1ABFA2E679AE925C066D0A3ADE06808DD44E8F'
$file = Join-Path $env:TEMP 'Screenpresso.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 'deploy --install --quiet' -Wait install-screenpresso.ps1
$url = 'https://cdn.screenpresso.com/binaries/releases/v2-4-03-000/dotnet47/Screenpresso.exe'
$sha256 = 'D567DC335CEB77680E773484EE1ABFA2E679AE925C066D0A3ADE06808DD44E8F'
$file = Join-Path $env:TEMP 'Screenpresso.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 'deploy --install --quiet' -Wait install-screenpresso.ps1
$url = 'https://cdn.screenpresso.com/binaries/releases/v2-4-03-000/dotnet47/ScreenpressoSetup.msi'
$sha256 = '949DB7D692DC6FB71C5C88C36105A3BA71F7664187E3200AC4A5EFA882307350'
$file = Join-Path $env:TEMP 'ScreenpressoSetup.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait