I comandi per installare codeg senza richieste, rimuoverlo e rilevarlo dagli strumenti di distribuzione. Un comando compare solo quando è certo: preso dal manifest o dal valore predefinito documentato della tecnologia di installazione.
Guida correlata: Installazione silenziosa: MSI, NSIS, Inno Setup · Disinstallare programmi dal registro o con PowerShell
Con winget
PowerShell
winget install --id XinTaoFei.Codeg -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XinTaoFei.Codeg -e --silentwinget uninstall --id XinTaoFei.Codeg -e --silentPer installer
64 bit · EXE (NSIS) · Utente corrente
Installazione silenziosa
codeg_0.51.1_x64-setup.exe /SCartella personalizzata
codeg_0.51.1_x64-setup.exe /S /D=C:\Apps\codeg- Chiave di registro di disinstallazione
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
ARM64 · EXE (NSIS) · Utente corrente
Installazione silenziosa
codeg_0.51.1_arm64-setup.exe /SCartella personalizzata
codeg_0.51.1_arm64-setup.exe /S /D=C:\Apps\codeg- Chiave di registro di disinstallazione
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\codeg
PowerShell: scarica, verifica, installa
Scarica il file ufficiale, ne verifica l’hash SHA256 e lo installa in modo silenzioso.
install-codeg.ps1
$url = 'https://github.com/spacering-net/codeg/releases/download/v0.51.1/codeg_0.51.1_x64-setup.exe'
$sha256 = '2036379C3072DD5200385F527C81EF2992E961C49CDDBAD28C17CFD5C4E8AC88'
$file = Join-Path $env:TEMP 'codeg_0.51.1_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 install-codeg.ps1
$url = 'https://github.com/spacering-net/codeg/releases/download/v0.51.1/codeg_0.51.1_arm64-setup.exe'
$sha256 = 'DED3087CF2BFA1A01E873A501B626BA4C5169F71F384BF7A0C851CA97C59B88F'
$file = Join-Path $env:TEMP 'codeg_0.51.1_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