Commands for installing TIM 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.TIM -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tencent.TIM -e --silentwinget uninstall --id Tencent.TIM -e --silentBy installer
32-bit · EXE · All users
Silent install
TIM3.4.8.22121.exe /s- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\TIM
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-tim.ps1
$url = 'https://dldir1v6.qq.com/qqfile/qq/TIM3.4.8/TIM3.4.8.22121.exe'
$sha256 = '94EB4BE511F67C103D8D4835026360EB5519018E9ED9577650C6206164BB8589'
$file = Join-Path $env:TEMP 'TIM3.4.8.22121.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 '/s' -Wait