Reactotronを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id InfiniteRed.Reactotron -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id InfiniteRed.Reactotron -e --silentwinget uninstall --id InfiniteRed.Reactotron -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Reactotron.Setup.3.11.0.exe /Sインストール先を指定
Reactotron.Setup.3.11.0.exe /S /D=C:\Apps\reactotron- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b4f20791-aeac-535e-ab41-2e527d2fc694
- DisplayVersion
- 3.11.0
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i Reactotron.3.11.0.msi /qn /norestartログを出力
msiexec /i Reactotron.3.11.0.msi /qn /norestart /l*v "%TEMP%\reactotron-install.log"アンインストール
msiexec /x {6122EF95-963F-4DFC-90BF-45C03E288257} /qn /norestart- MSIプロダクトコード
- {6122EF95-963F-4DFC-90BF-45C03E288257}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6122EF95-963F-4DFC-90BF-45C03E288257}
- DisplayVersion
- 3.11.0.4142
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-reactotron.ps1
$url = 'https://github.com/infinitered/reactotron/releases/download/reactotron-app@3.11.0/Reactotron.Setup.3.11.0.exe'
$sha256 = 'D6312BAD8FCF56E23EE445BE380FAC934D901D2F289256026AF11092D2F22F7A'
$file = Join-Path $env:TEMP 'Reactotron.Setup.3.11.0.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 install-reactotron.ps1
$url = 'https://github.com/infinitered/reactotron/releases/download/reactotron-app@3.11.0/Reactotron.3.11.0.msi'
$sha256 = 'A1BB25D031CD4D6EDA948E92BA89A201FDF68030666BE7B68FE6C619247EE658'
$file = Join-Path $env:TEMP 'Reactotron.3.11.0.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