Commands for installing Microsoft PowerApps CLI 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 Microsoft.PowerAppsCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.PowerAppsCLI -e --silentwinget uninstall --id Microsoft.PowerAppsCLI -e --silentBy installer
Any CPU · MSI
Silent install
msiexec /i powerapps-cli-1.0.msi /qn /norestartWrite a log
msiexec /i powerapps-cli-1.0.msi /qn /norestart /l*v "%TEMP%\microsoft-powerapps-cli-install.log"Uninstall
msiexec /x {55364314-AA09-40A3-BD3D-29A61EB72981} /qn /norestart- MSI product code
- {55364314-AA09-40A3-BD3D-29A61EB72981}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{55364314-AA09-40A3-BD3D-29A61EB72981}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-powerapps-cli.ps1
$url = 'https://download.microsoft.com/download/D/B/E/DBE69906-B4DA-471C-8960-092AB955C681/powerapps-cli-1.0.msi'
$sha256 = 'AF4C7058AB52E433ED0E18CB5D5E17256187A1B08ADD319F94C06C3EAC5D9190'
$file = Join-Path $env:TEMP 'powerapps-cli-1.0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait