Ordres per instal·lar QR Code for CmdPal sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path Riri.QRCodeForCmdPal_0.0.1.0_x64.msixDesinstal·lar
Get-AppxPackage -Name Riri.QRCodeForCmdPal | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path Riri.QRCodeForCmdPal_0.0.1.0_arm64.msixDesinstal·lar
Get-AppxPackage -Name Riri.QRCodeForCmdPal | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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