Commands for installing Consumer 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 Consumer.Windows -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Consumer.Windows -e --silentwinget uninstall --id Consumer.Windows -e --silentBy installer
32-bit · EXE · All users · pt-BR
Silent install
Setup-Consumer-16.1.1.6.exe /s- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Consumer
- DisplayVersion
- 16.1.1.6
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-consumer.ps1
$url = 'https://files.consumer.com.br/public/setup/Setup-Consumer-16.1.1.6.exe'
$sha256 = '6DF97DFE18329D32EC5F0E22B304160E524304F19CB6224D6DB75AC348DC3CB0'
$file = Join-Path $env:TEMP 'Setup-Consumer-16.1.1.6.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