Timeline Timerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AGSoto.TimelineTimer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AGSoto.TimelineTimer -e --silentwinget uninstall --id AGSoto.TimelineTimer -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i Timeline.Timer_0.1.1_x64_en-US.msi /qn /norestartログを出力
msiexec /i Timeline.Timer_0.1.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\timeline-timer-install.log"アンインストール
msiexec /x {3B71D02E-4AF1-4245-8D97-5DFD271CFA35} /qn /norestart- MSIプロダクトコード
- {3B71D02E-4AF1-4245-8D97-5DFD271CFA35}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3B71D02E-4AF1-4245-8D97-5DFD271CFA35}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-timeline-timer.ps1
$url = 'https://github.com/agsoto/timeline-timer/releases/download/v0.1.1/Timeline.Timer_0.1.1_x64_en-US.msi'
$sha256 = '7648C6DD4B5DBF784236180DA6BD05B4A714CAFB45215E183A49E0144750D402'
$file = Join-Path $env:TEMP 'Timeline.Timer_0.1.1_x64_en-US.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