Polecenia do instalacji programu QR-Code Reader bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · MSI · en-US
Cicha instalacja
msiexec /i QR-Code-Reader-1.1.2-x64.msi /qn /norestartZapis dziennika
msiexec /i QR-Code-Reader-1.1.2-x64.msi /qn /norestart /l*v "%TEMP%\qr-code-reader-install.log"Odinstalowanie
msiexec /x {691C4204-0C75-4AF3-9F12-E8A2DC8AA66D} /qn /norestart- Kod produktu MSI
- {691C4204-0C75-4AF3-9F12-E8A2DC8AA66D}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{691C4204-0C75-4AF3-9F12-E8A2DC8AA66D}
- UpgradeCode
- {8633B604-CBB1-4F1A-988A-2F038D70DDBC}
32-bit · MSI · en-US
Cicha instalacja
msiexec /i QR-Code-Reader-1.1.2-x86.msi /qn /norestartZapis dziennika
msiexec /i QR-Code-Reader-1.1.2-x86.msi /qn /norestart /l*v "%TEMP%\qr-code-reader-install.log"Odinstalowanie
msiexec /x {2208B206-AC05-48E1-B0D9-A9AC6BA08254} /qn /norestart- Kod produktu MSI
- {2208B206-AC05-48E1-B0D9-A9AC6BA08254}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2208B206-AC05-48E1-B0D9-A9AC6BA08254}
- UpgradeCode
- {8633B604-CBB1-4F1A-988A-2F038D70DDBC}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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