Tracetoolを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Tracetool.Tracetool -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tracetool.Tracetool -e --silentwinget uninstall --id Tracetool.Tracetool -e --silentインストーラー別
64ビット · EXE(Inno Setup)
サイレントインストール
Setup64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Setup64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tracetool"32ビット · EXE(Inno Setup)
サイレントインストール
Setup32.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Setup32.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\tracetool"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-tracetool.ps1
$url = 'https://github.com/capslock66/Tracetool/releases/download/VIEWER_15_0/Setup64.exe'
$sha256 = '500C30E57D5F0EA9590AD13D1E9E49A6EC789EC7925F3C7194747DCD9374E7AF'
$file = Join-Path $env:TEMP 'Setup64.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 install-tracetool.ps1
$url = 'https://github.com/capslock66/Tracetool/releases/download/VIEWER_15_0/Setup32.exe'
$sha256 = '239D026B66CE8CCAF5260580AD5B6BE0F7CFD9AD4AFD201056C080448CC89D6E'
$file = Join-Path $env:TEMP 'Setup32.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