Kommandon för att installera ttth 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 yafp.ttth -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id yafp.ttth -e --silentwinget uninstall --id yafp.ttth -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare · en-US
Tyst installation
ttth-1.8.0-win-installer.exe /SEgen mapp
ttth-1.8.0-win-installer.exe /S /D=C:\Apps\ttthPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-ttth.ps1
$url = 'https://github.com/yafp/ttth/releases/download/1.8.0/ttth-1.8.0-win-installer.exe'
$sha256 = '45EE92F39E571CA0EBD7DD0A126388CEBC1B56AC463BAB55D6119C4620910071'
$file = Join-Path $env:TEMP 'ttth-1.8.0-win-installer.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