Commands for installing WeChat 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.WeChat -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tencent.WeChat -e --silentwinget uninstall --id Tencent.WeChat -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
WeChatSetup.exe /SCustom folder
WeChatSetup.exe /S /D=C:\Apps\wechat- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WeChat
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-wechat.ps1
$url = 'https://dldir1v6.qq.com/weixin/Windows/WeChatSetup.exe'
$sha256 = 'C29FC05630CFC95EF6483F6B5B52AABFE74265BB260E210E78AE437D305D8990'
$file = Join-Path $env:TEMP 'WeChatSetup.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