Bitvise SSH Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Bitvise.SSH.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Bitvise.SSH.Server -e --silentwinget uninstall --id Bitvise.SSH.Server -e --silentインストーラー別
64ビット · EXE · すべてのユーザー
サイレントインストール
BvSshServer-966.exe -defaultInstance- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Bitvise SSH Server
32ビット · EXE · すべてのユーザー
サイレントインストール
BvSshServer-966.exe -defaultInstance- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Bitvise SSH Server
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-bitvise-ssh-server.ps1
$url = 'https://dl.bitvise.com/BvSshServer-966.exe'
$sha256 = 'D1407F989D18F4505BF623EB1C33A68CD5C79A483214EBC1FF86BEE9821293A6'
$file = Join-Path $env:TEMP 'BvSshServer-966.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 '-defaultInstance' -Wait install-bitvise-ssh-server.ps1
$url = 'https://dl.bitvise.com/BvSshServer-966.exe'
$sha256 = 'D1407F989D18F4505BF623EB1C33A68CD5C79A483214EBC1FF86BEE9821293A6'
$file = Join-Path $env:TEMP 'BvSshServer-966.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 '-defaultInstance' -Wait