Ordres per instal·lar Scanner 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 SimonKnuth.Scanner -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SimonKnuth.Scanner -e --silentwinget uninstall --id SimonKnuth.Scanner -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.MsixbundleDesinstal·lar
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.MsixbundleDesinstal·lar
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackage32 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.MsixbundleDesinstal·lar
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-scanner.ps1
$url = 'https://github.com/simon-knuth/scanner/releases/download/3.2.9.0/9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
$sha256 = '59ABDAEBC363FA443E0CE1D422E2FCBE2040E880920C31A251C60C9EE2FC8C8F'
$file = Join-Path $env:TEMP '9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-scanner.ps1
$url = 'https://github.com/simon-knuth/scanner/releases/download/3.2.9.0/9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
$sha256 = '59ABDAEBC363FA443E0CE1D422E2FCBE2040E880920C31A251C60C9EE2FC8C8F'
$file = Join-Path $env:TEMP '9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-scanner.ps1
$url = 'https://github.com/simon-knuth/scanner/releases/download/3.2.9.0/9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
$sha256 = '59ABDAEBC363FA443E0CE1D422E2FCBE2040E880920C31A251C60C9EE2FC8C8F'
$file = Join-Path $env:TEMP '9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file