Commands for installing Motion 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 Nexusbird.Motion -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Nexusbird.Motion -e --silentwinget uninstall --id Nexusbird.Motion -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path motion-0.117.0.x64.msixUninstall
Get-AppxPackage -Name Motion | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-motion.ps1
$url = 'https://github.com/usemotion/desktopapp/releases/download/0.117.0/motion-0.117.0.x64.msix'
$sha256 = '1DE01458D983C8D0D460877F99F0D9CA7869B94361E8698D66336203BABA8F3D'
$file = Join-Path $env:TEMP 'motion-0.117.0.x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file