Bot Framework Emulatorを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.BotFrameworkEmulator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.BotFrameworkEmulator -e --silentwinget uninstall --id Microsoft.BotFrameworkEmulator -e --silentインストーラー別
32ビット · EXE(NSIS) · 現在のユーザー · en-US
サイレントインストール
BotFramework-Emulator-4.15.1-windows-setup.exe /Sインストール先を指定
BotFramework-Emulator-4.15.1-windows-setup.exe /S /D=C:\Apps\bot-framework-emulator- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\4284f564-a844-5e4a-9dde-c2da80c6c6d6
32ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
BotFramework-Emulator-4.15.1-windows-setup.exe /Sインストール先を指定
BotFramework-Emulator-4.15.1-windows-setup.exe /S /D=C:\Apps\bot-framework-emulator- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\4284f564-a844-5e4a-9dde-c2da80c6c6d6
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bot-framework-emulator.ps1
$url = 'https://github.com/microsoft/BotFramework-Emulator/releases/download/v4.15.1/BotFramework-Emulator-4.15.1-windows-setup.exe'
$sha256 = 'C02B32FA861C448B3645D34F6E3719EE24C95BC0E4F9561DFF560407069006F2'
$file = Join-Path $env:TEMP 'BotFramework-Emulator-4.15.1-windows-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 '/S' -Wait install-bot-framework-emulator.ps1
$url = 'https://github.com/microsoft/BotFramework-Emulator/releases/download/v4.15.1/BotFramework-Emulator-4.15.1-windows-setup.exe'
$sha256 = 'C02B32FA861C448B3645D34F6E3719EE24C95BC0E4F9561DFF560407069006F2'
$file = Join-Path $env:TEMP 'BotFramework-Emulator-4.15.1-windows-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 '/S' -Wait