Ordres per instal·lar ima sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · EXE
Instal·lació silenciosa
ima.copilot_win_x64_1018_2.6.13_5247.exe quiet- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ima.copilot
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-ima.ps1
$url = 'https://app-dl.ima.qq.com/win_channel/ima.copilot_win_x64_1018_2.6.13_5247.exe'
$sha256 = '8B4643BE015AD50479415D724695B269EE406F8908970347141558950706D6B8'
$file = Join-Path $env:TEMP 'ima.copilot_win_x64_1018_2.6.13_5247.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