Kommandoer til at installere Command Code uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
64-bit · EXE (NSIS) · Aktuel bruger
Lydløs installation
CommandCode-0.1.57-x64-setup.exe /SEgen mappe
CommandCode-0.1.57-x64-setup.exe /S /D=C:\Apps\command-code- Afinstallationsnøgle i registreringsdatabasen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Installationsmappe
- %LocalAppData%\Programs\Command Code
64-bit · EXE (NSIS) · Alle brugere
Lydløs installation
CommandCode-0.1.57-x64-setup.exe /SEgen mappe
CommandCode-0.1.57-x64-setup.exe /S /D=C:\Apps\command-code- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b46e7766-e5c9-54ed-a8b3-18e11b17c52b
- Installationsmappe
- %ProgramFiles%\Command Code
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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