Ordres per instal·lar Command Code sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
CommandCode-0.1.57-x64-setup.exe /SUna altra carpeta
CommandCode-0.1.57-x64-setup.exe /S /D=C:\Apps\command-code- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Carpeta d’instal·lació
- %LocalAppData%\Programs\Command Code
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
CommandCode-0.1.57-x64-setup.exe /SUna altra carpeta
CommandCode-0.1.57-x64-setup.exe /S /D=C:\Apps\command-code- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Carpeta d’instal·lació
- %ProgramFiles%\Command Code
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-command-code.ps1
$url = 'https://github.com/CommandCodeAI/desktop/releases/latest/download/CommandCode-0.1.57-x64-setup.exe'
$sha256 = '6A6C383934F0CF1ABA1C9DBEB0F580BAA2F38EBB1CD3E5810E0712C4BF839B24'
$file = Join-Path $env:TEMP 'CommandCode-0.1.57-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.57-x64-setup.exe'
$sha256 = '6A6C383934F0CF1ABA1C9DBEB0F580BAA2F38EBB1CD3E5810E0712C4BF839B24'
$file = Join-Path $env:TEMP 'CommandCode-0.1.57-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