Polecenia do instalacji programu codeg 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
winget install --id XinTaoFei.Codeg -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XinTaoFei.Codeg -e --silentwinget uninstall --id XinTaoFei.Codeg -e --silentWedług instalatora
64-bit · EXE (NSIS) · Bieżący użytkownik
codeg_0.40.0_x64-setup.exe /Scodeg_0.40.0_x64-setup.exe /S /D=C:\Apps\codeg- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
ARM64 · EXE (NSIS) · Bieżący użytkownik
codeg_0.40.0_arm64-setup.exe /Scodeg_0.40.0_arm64-setup.exe /S /D=C:\Apps\codeg- Klucz odinstalowania w rejestrze
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
$url = 'https://github.com/spacering-net/codeg/releases/download/v0.40.0/codeg_0.40.0_x64-setup.exe'
$sha256 = '2172C3E4F9A9795DF6DAEEE526CA38A255235F9255F009B8C486DA07CEC8332F'
$file = Join-Path $env:TEMP 'codeg_0.40.0_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 $url = 'https://github.com/spacering-net/codeg/releases/download/v0.40.0/codeg_0.40.0_arm64-setup.exe'
$sha256 = '5E8601407337369CA6CBD3F645BE584233F5A53EC48AC14CA111319AEB858971'
$file = Join-Path $env:TEMP 'codeg_0.40.0_arm64-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