Kommandon för att installera Apache Thrift Compiler 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 Apache.Thrift -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Apache.Thrift -e --silentwinget uninstall --id Apache.Thrift -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
thrift-0.25.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
thrift-0.25.0-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\apache-thrift-compiler"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{064E0C5D-29EE-47DD-BB5E-172FE25FE936}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-apache-thrift-compiler.ps1
$url = 'https://github.com/apache/thrift/releases/download/v0.25.0/thrift-0.25.0-setup.exe'
$sha256 = 'C94286CB0422F02CBF0032931C85CFBA5940E13EFCCF10C1F5CF21B1398FD666'
$file = Join-Path $env:TEMP 'thrift-0.25.0-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