Commando’s om CodeArts Agent zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id Huawei.CodeArtsAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Huawei.CodeArtsAgent -e --silentwinget uninstall --id Huawei.CodeArtsAgent -e --silentPer installer
64-bits · EXE (Inno Setup) · Alle gebruikers
Stille installatie
codearts-agent-x64-26.11.300-350200a.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
codearts-agent-x64-26.11.300-350200a.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codearts-agent"- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{86ced762-76e0-459c-aab9-12cd4f6a7654}_is1
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-codearts-agent.ps1
$url = 'https://apsoutheast1-cloudide-marketplace.obs.ap-southeast-1.myhuaweicloud.com/codearts/ai/latest/codearts-agent-x64-26.11.300-350200a.exe'
$sha256 = 'C2E24AB350CBA1EBAC9E1D9ECF66A77EDC6865B2A86280D6FC1FCE15E4950E75'
$file = Join-Path $env:TEMP 'codearts-agent-x64-26.11.300-350200a.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait