Příkazy pro instalaci programu Barcode2Win bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id Paludour.Barcode2Win -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Paludour.Barcode2Win -e --silentwinget uninstall --id Paludour.Barcode2Win -e --silentPodle instalátoru
32bit · EXE (NSIS)
Tichá instalace
Barcode2WinSetup18.exe /SVlastní složka
Barcode2WinSetup18.exe /S /D=C:\Apps\barcode2winPowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-barcode2win.ps1
$url = 'https://www.paludour.net/Barcode2WinSetup18.exe'
$sha256 = '065BC1232005ACAE04CC0DE33868B9B0E72E4A079F0FD1228509D0A9FB635D77'
$file = Join-Path $env:TEMP 'Barcode2WinSetup18.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait