Kommandoer til at installere ima uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
64-bit · EXE
Lydløs installation
ima.copilot_win_x64_1018_2.6.19_5356.exe quiet- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ima.copilot
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-ima.ps1
$url = 'https://app-dl.ima.qq.com/win_channel/ima.copilot_win_x64_1018_2.6.19_5356.exe'
$sha256 = 'E2C2C3E2BD878F0B545E572138ABB29F06126835E7E4AF53F5EC644B00A0E3F8'
$file = Join-Path $env:TEMP 'ima.copilot_win_x64_1018_2.6.19_5356.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