أوامر لتثبيت برنامج Scanner دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام 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 --silentحسب المثبّت
64 بت · MSIX
التثبيت الصامت
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundleإلغاء التثبيت
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackageARM64 · MSIX
التثبيت الصامت
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundleإلغاء التثبيت
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackage32 بت · MSIX
التثبيت الصامت
Add-AppxPackage -Path 9390SimonKnuth.ScannerforWindows10_3.2.9.0_neutral_._69n05hp4v3s90.Msixbundleإلغاء التثبيت
Get-AppxPackage -Name 9390SimonKnuth.ScannerforWindows10 | Remove-AppxPackagePowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
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