electermを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id electerm.electerm -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id electerm.electerm -e --silentwinget uninstall --id electerm.electerm -e --silentインストーラー別
64ビット · EXE(NSIS) · en-US
サイレントインストール
electerm-5.7.15-win-x64-installer.exe /Sインストール先を指定
electerm-5.7.15-win-x64-installer.exe /S /D=C:\Apps\electerm- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cdebb73f-ddf5-57cd-a4a4-998a5c7283dd
- DisplayVersion
- 5.7.15
ARM64 · EXE(NSIS) · en-US
サイレントインストール
electerm-5.7.15-win-arm64-installer.exe /Sインストール先を指定
electerm-5.7.15-win-arm64-installer.exe /S /D=C:\Apps\electerm- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cdebb73f-ddf5-57cd-a4a4-998a5c7283dd
- DisplayVersion
- 5.7.15
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-electerm.ps1
$url = 'https://github.com/electerm/electerm/releases/download/v5.7.15/electerm-5.7.15-win-x64-installer.exe'
$sha256 = 'F9D81452DB0E8C2672AA2635160855C871463FAA3F2F7DD7666697206C3C24D9'
$file = Join-Path $env:TEMP 'electerm-5.7.15-win-x64-installer.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-electerm.ps1
$url = 'https://github.com/electerm/electerm/releases/download/v5.7.15/electerm-5.7.15-win-arm64-installer.exe'
$sha256 = '08451EB6F32EE3AB115D3CFBE52C9E8CBD5653917B24FE181BACF20EF88AF1AD'
$file = Join-Path $env:TEMP 'electerm-5.7.15-win-arm64-installer.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