Kommandon för att installera vott 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 Microsoft.vott -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.vott -e --silentwinget uninstall --id Microsoft.vott -e --silentPer installationsfil
64-bitars · EXE (NSIS)
Tyst installation
vott-2.2.0-win32.exe /SEgen mapp
vott-2.2.0-win32.exe /S /D=C:\Apps\vottPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-vott.ps1
$url = 'https://github.com/microsoft/VoTT/releases/download/v2.2.0/vott-2.2.0-win32.exe'
$sha256 = '5DDD7CC2CBCFDD670A6503F74E3FA741051F25D358B513718190EDBC10F5B9F2'
$file = Join-Path $env:TEMP 'vott-2.2.0-win32.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