Příkazy pro instalaci programu timeit bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id EnderbytePrograms.TimeIt -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EnderbytePrograms.TimeIt -e --silentwinget uninstall --id EnderbytePrograms.TimeIt -e --silentPodle instalátoru
64bit · EXE (Inno Setup)
Tichá instalace
wintimeit-1.4-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastní složka
wintimeit-1.4-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\timeit"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-timeit.ps1
$url = 'https://github.com/Enderbyte-Programs/WinTimeIt/releases/download/v1.4/wintimeit-1.4-setup.exe'
$sha256 = '2E37EE5F41CCEAD87593120F3A46EA11A65337DE70BAEA9D1D949483303AB836'
$file = Join-Path $env:TEMP 'wintimeit-1.4-setup.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