أوامر لتثبيت برنامج Barcode2WinPro دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id Paludour.Barcode2WinPro -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Paludour.Barcode2WinPro -e --silentwinget uninstall --id Paludour.Barcode2WinPro -e --silentحسب المثبّت
64 بت · EXE (WiX Burn)
التثبيت الصامت
Barcode2WinPro2.0-x64.exe /quiet /norestartPowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-barcode2winpro.ps1
$url = 'https://www.paludour.net/Barcode2WinPro2.0-x64.exe'
$sha256 = 'C148A54C82089C815467BA4FB4607DD5EEC54E212B1302A0EC074018ECE6C690'
$file = Join-Path $env:TEMP 'Barcode2WinPro2.0-x64.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 '/quiet /norestart' -Wait