Commands for installing ima 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.ima-copilot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tencent.ima-copilot -e --silentwinget uninstall --id Tencent.ima-copilot -e --silentBy installer
64-bit · EXE
Silent install
ima.copilot_win_x64_1018_2.6.15_5280.exe quiet- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ima.copilot
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ima.ps1
$url = 'https://app-dl.ima.qq.com/win_channel/ima.copilot_win_x64_1018_2.6.15_5280.exe'
$sha256 = '647A5B3102144D1C29DDB7589BC244CA673CE66A7B0A5822C0C8B7FF1B11032C'
$file = Join-Path $env:TEMP 'ima.copilot_win_x64_1018_2.6.15_5280.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 'quiet' -Wait