TinyGUIを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Redisant.TinyGUI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Redisant.TinyGUI -e --silentwinget uninstall --id Redisant.TinyGUI -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
TinyGUI-1.0.9.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
TinyGUI-1.0.9.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tinygui"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{86F7E7FE-3438-4D1D-A575-0D9DE635D22C}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-tinygui.ps1
$url = 'https://github.com/chenjing1294/TinyGUI/releases/download/v1.0.9.0/TinyGUI-1.0.9.0.exe'
$sha256 = '1E29075564D9C283333F1BE13868E5DCF45B4E4E7922ACA72727E87E2B1A6CDA'
$file = Join-Path $env:TEMP 'TinyGUI-1.0.9.0.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait