Kommandon för att installera Echo 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 afractal.Echo -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id afractal.Echo -e --silentwinget uninstall --id afractal.Echo -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Tyst installation
Echo-v1.0.0.exe /SEgen mapp
Echo-v1.0.0.exe /S /D=C:\Apps\echoPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-echo.ps1
$url = 'https://github.com/afractal/echo-app/releases/download/1.0/Echo-v1.0.0.exe'
$sha256 = '7660ADDB1CA6DD634DE0C3694BACB072B1707277C7B7C10A34CF6E5260055DBB'
$file = Join-Path $env:TEMP 'Echo-v1.0.0.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