Comandos para instalar Command Code sem perguntas, removê-lo e detectá-lo em ferramentas de implantação. Um comando só aparece quando é certo: vem do manifesto ou do padrão documentado da tecnologia do instalador.
Guia relacionado: Instalação silenciosa: parâmetros MSI, NSIS e Inno · Desinstalar programa pelo registro ou PowerShell
Com 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 --silentPor instalador
64 bits · EXE (NSIS) · Usuário atual
Instalação silenciosa
CommandCode-0.1.58-x64-setup.exe /SOutra pasta
CommandCode-0.1.58-x64-setup.exe /S /D=C:\Apps\command-code- Chave de desinstalação no registro
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Pasta de instalação
- %LocalAppData%\Programs\Command Code
64 bits · EXE (NSIS) · Todos os usuários
Instalação silenciosa
CommandCode-0.1.58-x64-setup.exe /SOutra pasta
CommandCode-0.1.58-x64-setup.exe /S /D=C:\Apps\command-code- Chave de desinstalação no registro
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Pasta de instalação
- %ProgramFiles%\Command Code
PowerShell: baixar, verificar, instalar
Baixa o arquivo oficial, confere o SHA256 e instala em modo silencioso.
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