React Native Debuggerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id jhen0409.ReactNativeDebugger -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jhen0409.ReactNativeDebugger -e --silentwinget uninstall --id jhen0409.ReactNativeDebugger -e --silentインストーラー別
64ビット · EXE · 現在のユーザー
サイレントインストール
react_native_debugger-0.14.0-setup.exe --silent- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\react_native_debugger
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-react-native-debugger.ps1
$url = 'https://github.com/jhen0409/react-native-debugger/releases/download/v0.14.0/react_native_debugger-0.14.0-setup.exe'
$sha256 = '17EC49656E671D6BE7DB34ED279440B00114DDC5D7C3AD54A54159160C6F7513'
$file = Join-Path $env:TEMP 'react_native_debugger-0.14.0-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 '--silent' -Wait