Desktop Countdown Timerを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SoftSea.DesktopCountdownTimer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SoftSea.DesktopCountdownTimer -e --silentwinget uninstall --id SoftSea.DesktopCountdownTimer -e --silentインストーラー別
32ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\desktop-countdown-timer"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F44A1ACF-FC6D-4606-B233-8BA09EE9B575}_is1
- インストール先フォルダー
- %ProgramFiles%\Desktop Countdown Timer
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-desktop-countdown-timer.ps1
$url = 'https://file1.softsea.com/get.php?file=desktopcountdowntimer_setup.exe'
$sha256 = '13BCD6BCAF9C740F3751B20457DB76DCBA61CA187093C7621E7E77B039C9FB92'
$file = Join-Path $env:TEMP 'get.php'
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