Polecenia do instalacji programu VBoxHeadlessTray bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id ToptenSoftware.VBoxHeadlessTray -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ToptenSoftware.VBoxHeadlessTray -e --silentwinget uninstall --id ToptenSoftware.VBoxHeadlessTray -e --silentWedług instalatora
64-bit · EXE (Inno Setup)
Cicha instalacja
VBoxHeadlessTray700Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Własny folder
VBoxHeadlessTray700Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\vboxheadlesstray"- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{d13630aa-97df-11e5-8994-feff819cdc9f}_is1
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-vboxheadlesstray.ps1
$url = 'https://www.toptensoftware.com/downloads/VBoxHeadlessTray700Setup.exe'
$sha256 = '951EB75B99B5828BE6C87B6124635E925A6D887AD33140794801E2BA616D9700'
$file = Join-Path $env:TEMP 'VBoxHeadlessTray700Setup.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