Les commandes pour installer QR-Code Reader sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
PowerShell
winget install --id OttoZumkeller.QR-CodeReader -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OttoZumkeller.QR-CodeReader -e --silentwinget uninstall --id OttoZumkeller.QR-CodeReader -e --silentPar installateur
64 bits · MSI · en-US
Installation silencieuse
msiexec /i QR-Code-Reader-1.1.2-x64.msi /qn /norestartÉcrire un journal
msiexec /i QR-Code-Reader-1.1.2-x64.msi /qn /norestart /l*v "%TEMP%\qr-code-reader-install.log"Désinstallation
msiexec /x {691C4204-0C75-4AF3-9F12-E8A2DC8AA66D} /qn /norestart- Code produit MSI
- {691C4204-0C75-4AF3-9F12-E8A2DC8AA66D}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{691C4204-0C75-4AF3-9F12-E8A2DC8AA66D}
- UpgradeCode
- {8633B604-CBB1-4F1A-988A-2F038D70DDBC}
32 bits · MSI · en-US
Installation silencieuse
msiexec /i QR-Code-Reader-1.1.2-x86.msi /qn /norestartÉcrire un journal
msiexec /i QR-Code-Reader-1.1.2-x86.msi /qn /norestart /l*v "%TEMP%\qr-code-reader-install.log"Désinstallation
msiexec /x {2208B206-AC05-48E1-B0D9-A9AC6BA08254} /qn /norestart- Code produit MSI
- {2208B206-AC05-48E1-B0D9-A9AC6BA08254}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2208B206-AC05-48E1-B0D9-A9AC6BA08254}
- UpgradeCode
- {8633B604-CBB1-4F1A-988A-2F038D70DDBC}
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-qr-code-reader.ps1
$url = 'https://github.com/ottozumkeller/QR-Code-Reader/releases/download/v1.1.2/QR-Code-Reader-1.1.2-x64.msi'
$sha256 = '30F0C649A760E2E09047AC5B0407813D7BF67A5F46A3177CB81A01B334DE5F23'
$file = Join-Path $env:TEMP 'QR-Code-Reader-1.1.2-x64.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 install-qr-code-reader.ps1
$url = 'https://github.com/ottozumkeller/QR-Code-Reader/releases/download/v1.1.2/QR-Code-Reader-1.1.2-x86.msi'
$sha256 = 'A77693658C64FBE418F616AB2AC751C979A2458BB1AB6C1281284487F9BC7AC5'
$file = Join-Path $env:TEMP 'QR-Code-Reader-1.1.2-x86.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