Kommandon för att installera Desktop Countdown Timer utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
get.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\desktop-countdown-timer"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F44A1ACF-FC6D-4606-B233-8BA09EE9B575}_is1
- Installationsmapp
- %ProgramFiles%\Desktop Countdown Timer
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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