TinyTERM Enterprise TE Serverを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CenSoft.TinyTERMEnterpriceTEServer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CenSoft.TinyTERMEnterpriceTEServer -e --silentwinget uninstall --id CenSoft.TinyTERMEnterpriceTEServer -e --silentインストーラー別
32ビット · MSI · en-US
サイレントインストール
msiexec /i TinyTERM_Enterprise_TE_Server-Windows-2.1.0_59.msi /qn /norestartログを出力
msiexec /i TinyTERM_Enterprise_TE_Server-Windows-2.1.0_59.msi /qn /norestart /l*v "%TEMP%\tinyterm-enterprise-te-server-install.log"アンインストール
msiexec /x {0D7E6F20-C4D9-4320-B2C6-0C2F5D54215C} /qn /norestart- MSIプロダクトコード
- {0D7E6F20-C4D9-4320-B2C6-0C2F5D54215C}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{0D7E6F20-C4D9-4320-B2C6-0C2F5D54215C}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-tinyterm-enterprise-te-server.ps1
$url = 'http://te.censoft.com/download/ttweb/TinyTERM_Enterprise_TE_Server-Windows-2.1.0_59.msi'
$sha256 = '9DA8F2261FEE3DE74FA2C47533442B233FC529C570D39D67FEFEAEBA9DE01789'
$file = Join-Path $env:TEMP 'TinyTERM_Enterprise_TE_Server-Windows-2.1.0_59.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait