I comandi per installare Command Code 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 CommandCode.CommandCodeDesktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CommandCode.CommandCodeDesktop -e --silentwinget uninstall --id CommandCode.CommandCodeDesktop -e --silentPer installer
64 bit · EXE (NSIS) · Utente corrente
Installazione silenziosa
CommandCode-0.1.58-x64-setup.exe /SCartella personalizzata
CommandCode-0.1.58-x64-setup.exe /S /D=C:\Apps\command-code- Chiave di registro di disinstallazione
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Cartella di installazione
- %LocalAppData%\Programs\Command Code
64 bit · EXE (NSIS) · Tutti gli utenti
Installazione silenziosa
CommandCode-0.1.58-x64-setup.exe /SCartella personalizzata
CommandCode-0.1.58-x64-setup.exe /S /D=C:\Apps\command-code- Chiave di registro di disinstallazione
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Cartella di installazione
- %ProgramFiles%\Command Code
PowerShell: scarica, verifica, installa
Scarica il file ufficiale, ne verifica l’hash SHA256 e lo installa in modo silenzioso.
install-command-code.ps1
$url = 'https://github.com/CommandCodeAI/desktop/releases/latest/download/CommandCode-0.1.58-x64-setup.exe'
$sha256 = 'A91676207FD01F37E26F66D13E0B51A3FC45DC57719177889C7D11208565D49C'
$file = Join-Path $env:TEMP 'CommandCode-0.1.58-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-command-code.ps1
$url = 'https://github.com/CommandCodeAI/desktop/releases/latest/download/CommandCode-0.1.58-x64-setup.exe'
$sha256 = 'A91676207FD01F37E26F66D13E0B51A3FC45DC57719177889C7D11208565D49C'
$file = Join-Path $env:TEMP 'CommandCode-0.1.58-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