Commands for installing MIUI+ 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 Xiaomi.MIUI+ -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Xiaomi.MIUI+ -e --silentwinget uninstall --id Xiaomi.MIUI+ -e --silentBy installer
64-bit · EXE · All users
Silent install
AIoT_master_2.5.5.643_9eea650c.exe /S- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\AIoT
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-miui-plus.ps1
$url = 'https://cdn.cnbj1.fds.api.mi-img.com/download/miaiot/AIoT_master_2.5.5.643_9eea650c.exe'
$sha256 = '41BF5DA2DFE528F8AFA449AAD5872AC9B0C6D992B5F0478B786F15408AEDA82B'
$file = Join-Path $env:TEMP 'AIoT_master_2.5.5.643_9eea650c.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