ScreenStepsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ScreenSteps.ScreenSteps -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ScreenSteps.ScreenSteps -e --silentwinget uninstall --id ScreenSteps.ScreenSteps -e --silentインストーラー別
32ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i ScreenSteps.msi /qn /norestartログを出力
msiexec /i ScreenSteps.msi /qn /norestart /l*v "%TEMP%\screensteps-install.log"アンインストール
msiexec /x {453CBDFE-A2DE-4176-900E-922E53B62432} /qn /norestart- MSIプロダクトコード
- {453CBDFE-A2DE-4176-900E-922E53B62432}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{453CBDFE-A2DE-4176-900E-922E53B62432}
- UpgradeCode
- {00288B09-8E02-4D6B-943E-1DEFFF055D66}
- インストール先フォルダー
- %ProgramFiles(x86)%\ScreenSteps 4.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-screensteps.ps1
$url = 'https://www.bluemangolearning.com/download/screensteps/4_0/release/ScreenSteps.msi'
$sha256 = '47B54D25F8E123CBBC2B764A5B176898C24E2680F33EC7D5A91BF51E694047A9'
$file = Join-Path $env:TEMP 'ScreenSteps.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