Polecenia do instalacji programu Onyx Code 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 Loko.OnyxCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Loko.OnyxCode -e --silentwinget uninstall --id Loko.OnyxCode -e --silentWedług instalatora
64-bit · EXE (Inno Setup) · Bieżący użytkownik
Cicha instalacja
OnyxCode-win32-x64-winget.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Własny folder
OnyxCode-win32-x64-winget.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\onyx-code"- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CC6B787D-37A0-49E8-AE24-8559A032BE0C}_is1
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-onyx-code.ps1
$url = 'https://github.com/onyxcode-app/onyxcode-releases/releases/download/v2.7.2/OnyxCode-win32-x64-winget.exe'
$sha256 = 'E342596C2CA7995AEFCF22BB3E0BEF543336300F8EB7FA57DAA46D19957DB902'
$file = Join-Path $env:TEMP 'OnyxCode-win32-x64-winget.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