WinTerm2を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id hailcanto.WinTerm2 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id hailcanto.WinTerm2 -e --silentwinget uninstall --id hailcanto.WinTerm2 -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
WinTerm2.Setup.1.0.8.exe /Sインストール先を指定
WinTerm2.Setup.1.0.8.exe /S /D=C:\Apps\winterm2- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\63edbe80-76c8-59b5-afa2-d093bd1a80b3
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
WinTerm2.Setup.1.0.8.exe /Sインストール先を指定
WinTerm2.Setup.1.0.8.exe /S /D=C:\Apps\winterm2- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\63edbe80-76c8-59b5-afa2-d093bd1a80b3
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-winterm2.ps1
$url = 'https://github.com/hailcanto/Winterm2/releases/download/V1.0.8/WinTerm2.Setup.1.0.8.exe'
$sha256 = '87E91F0334E8CBC3A70E1024336549864AEFC04E3512B73E137DF23E394DD547'
$file = Join-Path $env:TEMP 'WinTerm2.Setup.1.0.8.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-winterm2.ps1
$url = 'https://github.com/hailcanto/Winterm2/releases/download/V1.0.8/WinTerm2.Setup.1.0.8.exe'
$sha256 = '87E91F0334E8CBC3A70E1024336549864AEFC04E3512B73E137DF23E394DD547'
$file = Join-Path $env:TEMP 'WinTerm2.Setup.1.0.8.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