Kommandon för att installera Beetroot 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 MNardit.Beetroot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MNardit.Beetroot -e --silentwinget uninstall --id MNardit.Beetroot -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Tyst installation
Beetroot_1.6.7_x64-setup.exe /SEgen mapp
Beetroot_1.6.7_x64-setup.exe /S /D=C:\Apps\beetrootPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-beetroot.ps1
$url = 'https://github.com/mnardit/beetroot-releases/releases/download/v1.6.7/Beetroot_1.6.7_x64-setup.exe'
$sha256 = '1F2BA334EDC1FBAF89CB75DFE732799031FF1A187124B84BE5B2E48374ADAFB6'
$file = Join-Path $env:TEMP 'Beetroot_1.6.7_x64-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 '/S' -Wait