Kommandon för att installera WebDL 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 Timber1900.WebDL -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Timber1900.WebDL -e --silentwinget uninstall --id Timber1900.WebDL -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
WebDL.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
WebDL.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\webdl"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-webdl.ps1
$url = 'https://github.com/Timber1900/WebDL/releases/download/v11.3.1/WebDL.exe'
$sha256 = 'C5C62CC7F05D66B80E48B37A78E6AAAEF13649998B8753C1031C00AF089277CF'
$file = Join-Path $env:TEMP 'WebDL.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