Commands for installing BreakTimer without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id TomWatson.BreakTimer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TomWatson.BreakTimer -e --silentwinget uninstall --id TomWatson.BreakTimer -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
BreakTimer.exe /SCustom folder
BreakTimer.exe /S /D=C:\Apps\breaktimer- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\2c4abae5-a54b-5eb0-83f9-4e155c414a68
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-breaktimer.ps1
$url = 'https://github.com/tom-james-watson/breaktimer-app/releases/download/v2.0.3/BreakTimer.exe'
$sha256 = '61122518BB6DE92413A9DD06DF2E7FE55FDF15479812E52E11DBB44334BEE4D9'
$file = Join-Path $env:TEMP 'BreakTimer.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 '/S' -Wait