Commands for installing QR Code for CmdPal 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 Riri.QRCodeforCmdPal -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Riri.QRCodeforCmdPal -e --silentwinget uninstall --id Riri.QRCodeforCmdPal -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path Riri.QRCodeForCmdPal_0.0.1.0_x64.msixUninstall
Get-AppxPackage -Name Riri.QRCodeForCmdPal | Remove-AppxPackageARM64 · MSIX
Silent install
Add-AppxPackage -Path Riri.QRCodeForCmdPal_0.0.1.0_arm64.msixUninstall
Get-AppxPackage -Name Riri.QRCodeForCmdPal | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-qr-code-for-cmdpal.ps1
$url = 'https://github.com/Daydreamer-riri/QRCode-CmdPal/releases/download/0.0.1/Riri.QRCodeForCmdPal_0.0.1.0_x64.msix'
$sha256 = '0071835DE9369C73A28CEBCDF2AECE4DB35FB5AE98917E73F0AE16A94294F3F9'
$file = Join-Path $env:TEMP 'Riri.QRCodeForCmdPal_0.0.1.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 install-qr-code-for-cmdpal.ps1
$url = 'https://github.com/Daydreamer-riri/QRCode-CmdPal/releases/download/0.0.1/Riri.QRCodeForCmdPal_0.0.1.0_arm64.msix'
$sha256 = '663B23F795DD84A1CC13006167D3F4B3309D05C338D4CE6017A81C6141B46924'
$file = Join-Path $env:TEMP 'Riri.QRCodeForCmdPal_0.0.1.0_arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file