Commands for installing Comate 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 Baidu.Comate -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Baidu.Comate -e --silentwinget uninstall --id Baidu.Comate -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user
Silent install
Comate-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Comate-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\comate"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E1BCCBB0-0C31-40C1-AB8D-2AE2E6C3C2F2}}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-comate.ps1
$url = 'https://comate-ide.cdn.bcebos.com/download/stable/b0a3898a5a5ca92be2dc09a8bb0f91d341925e3a-273608800/Comate-win32-x64-user-setup.exe'
$sha256 = 'DB460A6AF777FE4DD5D0607F870137A8F312353F16CDC97991F3A902EB4460C8'
$file = Join-Path $env:TEMP 'Comate-win32-x64-user-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait