SecondLoopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SecondLoop.SecondLoop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SecondLoop.SecondLoop -e --silentwinget uninstall --id SecondLoop.SecondLoop -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i SecondLoop-win.msi /qn /norestartログを出力
msiexec /i SecondLoop-win.msi /qn /norestart /l*v "%TEMP%\secondloop-install.log"アンインストール
msiexec /x {7EAB3CF4-1471-4874-8B21-EE2FAE9F973B} /qn /norestart- MSIプロダクトコード
- {7EAB3CF4-1471-4874-8B21-EE2FAE9F973B}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7EAB3CF4-1471-4874-8B21-EE2FAE9F973B}
- UpgradeCode
- {8B5A0942-79D3-4B5A-A4E5-3FB906DA63A1}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-secondloop.ps1
$url = 'https://github.com/dale0525/SecondLoop/releases/download/v1.33.0/SecondLoop-win.msi'
$sha256 = '77898EB4AADE325E775ED3FB2388B1A8959707F93243DC9D2E2EC29F98AF76FA'
$file = Join-Path $env:TEMP 'SecondLoop-win.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