Commands for installing CodeBuddy CN without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Tencent.CodeBuddy.CN -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tencent.CodeBuddy.CN -e --silentwinget uninstall --id Tencent.CodeBuddy.CN -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
CodeBuddy-win32-x64-user-4.12.0.37847260-b4c35ed0-cn.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CodeBuddy-win32-x64-user-4.12.0.37847260-b4c35ed0-cn.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codebuddy-cn"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{76543210-DCBA-9876-5432-10FEDCBA9876}}_is1
- Install folder
- %LocalAppData%\Programs\CodeBuddy CN
64-bit · EXE (Inno Setup) · All users
Silent install
CodeBuddy-win32-x64-system-4.12.0.37847260-b4c35ed0-cn.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CodeBuddy-win32-x64-system-4.12.0.37847260-b4c35ed0-cn.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codebuddy-cn"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{98765432-FEDC-BA98-7654-3210FEDCBA98}}_is1
- Install folder
- %ProgramFiles%\CodeBuddy CN
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-codebuddy-cn.ps1
$url = 'https://download.codebuddy.cn/aiide/win32-x64-user/CodeBuddy-win32-x64-user-4.12.0.37847260-b4c35ed0-cn.exe'
$sha256 = '129D807010DBC0FFA64392401CAD9DC20DFAA406968726BC43737B674592D394'
$file = Join-Path $env:TEMP 'CodeBuddy-win32-x64-user-4.12.0.37847260-b4c35ed0-cn.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 install-codebuddy-cn.ps1
$url = 'https://download.codebuddy.cn/aiide/win32-x64-system/CodeBuddy-win32-x64-system-4.12.0.37847260-b4c35ed0-cn.exe'
$sha256 = '5A237C9E49F169CFAEB7A0628FDEC2D871FB7451212B86ABE1457CD5A2590DB4'
$file = Join-Path $env:TEMP 'CodeBuddy-win32-x64-system-4.12.0.37847260-b4c35ed0-cn.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